IRIX: Packages support
This commit is contained in:
parent
39f767e45b
commit
e2068c61d5
15
pfetch
15
pfetch
|
@ -218,7 +218,7 @@ get_kernel() {
|
||||||
case $os in
|
case $os in
|
||||||
# Don't print kernel output on some systems as the
|
# Don't print kernel output on some systems as the
|
||||||
# OS name includes it.
|
# OS name includes it.
|
||||||
*BSD*|Haiku|Minix|IRIX*) ;;
|
*BSD*|Haiku|Minix|IRIX) ;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
# '$kernel' is the cached output of 'uname -r'.
|
# '$kernel' is the cached output of 'uname -r'.
|
||||||
|
@ -337,7 +337,7 @@ get_uptime() {
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
IRIX*)
|
IRIX)
|
||||||
# Grab the uptime in a pretty format. Usually,
|
# Grab the uptime in a pretty format. Usually,
|
||||||
# 00:00:00 from the 'ps' command.
|
# 00:00:00 from the 'ps' command.
|
||||||
t=$(LC_ALL=POSIX ps -o etime= -p 1)
|
t=$(LC_ALL=POSIX ps -o etime= -p 1)
|
||||||
|
@ -467,13 +467,18 @@ get_pkgs() {
|
||||||
has pkg && pkg list
|
has pkg && pkg list
|
||||||
;;
|
;;
|
||||||
|
|
||||||
IRIX*)
|
IRIX)
|
||||||
# TODO: result - 3.
|
|
||||||
versions -b
|
versions -b
|
||||||
;;
|
;;
|
||||||
esac | wc -l
|
esac | wc -l
|
||||||
`
|
`
|
||||||
|
|
||||||
|
case $os in
|
||||||
|
# IRIX's package manager adds 3 lines of extra
|
||||||
|
# output which we must account for here.
|
||||||
|
IRIX) packages=$((packages - 3)) ;;
|
||||||
|
esac
|
||||||
|
|
||||||
[ "$packages" -gt 1 ] && log pkgs "$packages"
|
[ "$packages" -gt 1 ] && log pkgs "$packages"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -655,7 +660,7 @@ get_memory() {
|
||||||
mem_used=$((mem_full - mem_free))
|
mem_used=$((mem_full - mem_free))
|
||||||
;;
|
;;
|
||||||
|
|
||||||
IRIX*)
|
IRIX)
|
||||||
# Read the memory information from the 'top' command. Parse
|
# Read the memory information from the 'top' command. Parse
|
||||||
# and split each line until we reach the line starting with
|
# and split each line until we reach the line starting with
|
||||||
# "Memory".
|
# "Memory".
|
||||||
|
|
Loading…
Reference in New Issue
Block a user