Fix uptime path for MacOS, again
This commit is contained in:
parent
2e3b6f66fa
commit
7169598522
@ -6,7 +6,7 @@ function load_average {
|
|||||||
LA=`cut -d\ -f1 < /proc/loadavg`
|
LA=`cut -d\ -f1 < /proc/loadavg`
|
||||||
else
|
else
|
||||||
if [ -f '/usr/bin/uptime' ]; then
|
if [ -f '/usr/bin/uptime' ]; then
|
||||||
UPTIME='/bin/uptime'
|
UPTIME='/usr/bin/uptime'
|
||||||
elif [ -f '/usr/bsd/uptime' ]; then
|
elif [ -f '/usr/bsd/uptime' ]; then
|
||||||
UPTIME='/usr/bsd/uptime'
|
UPTIME='/usr/bsd/uptime'
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user