Uptime test: add operating system version
authorAlexander Barton <alex@barton.de>
Mon, 14 Dec 2009 20:45:17 +0000 (21:45 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 14 Dec 2009 20:45:17 +0000 (21:45 +0100)
client/lib/tests/Uptime.tst

index fb4d7aa..0201113 100644 (file)
@@ -7,5 +7,8 @@ uptime=`LC_ALL=C uptime`
 uptime=${uptime%,*user*}
 uptime=${uptime##* up }
 
+os="`uname -s` `uname -r`"
+[ `uname` = "Darwin" ] && os="`sw_vers -productName` `sw_vers -productVersion`"
+
 STATUS=0
-TEXT="Uptime: $uptime"
+TEXT="Uptime: $uptime - $os"