projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
another attempt to get the uptime right.
[feisty_meow.git]
/
scripts
/
core
/
inventory.sh
diff --git
a/scripts/core/inventory.sh
b/scripts/core/inventory.sh
index 55212f9ce7e7c0de3a15336634711020677d3b20..647f943ac3bdd8e0686f392a7deef2fb0b5a28a2 100644
(file)
--- a/
scripts/core/inventory.sh
+++ b/
scripts/core/inventory.sh
@@
-18,10
+18,11
@@
fi
# test if this uptime knows the -p flag.
uptime -p &>/dev/null
+errorfudgetime
if [ $? -eq 0 ]; then
up="$(uptime -p)"
else
- up="
up $(uptime
)"
+ up="
$(uptime | awk '{print $2 " " $1 }'
)"
fi
echo