summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-version
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-01-16 19:03:41 -0800
committerStig Thormodsrud <stig@vyatta.com>2008-01-16 19:03:41 -0800
commitb1343445b5763d707f228719859aec88e62c715c (patch)
treedd2b842a5fedd50525d2a08525cef52b4e76ede8 /scripts/vyatta-show-version
parent54bfcb0a3a34e98ee95c135a56db8776e4d8296c (diff)
downloadvyatta-op-b1343445b5763d707f228719859aec88e62c715c.tar.gz
vyatta-op-b1343445b5763d707f228719859aec88e62c715c.zip
Add uptime to 'show version' and add 'show system uptime'
Diffstat (limited to 'scripts/vyatta-show-version')
-rwxr-xr-xscripts/vyatta-show-version6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/vyatta-show-version b/scripts/vyatta-show-version
index c98135d..5ae1e70 100755
--- a/scripts/vyatta-show-version
+++ b/scripts/vyatta-show-version
@@ -163,7 +163,11 @@ if (defined($booted) && $booted ne "") {
} else {
$booted="disk";
}
-print "Booted From: $booted\n";
+print "Boot via: $booted\n";
+my $uptime = `uptime`;
+if (defined $uptime && $uptime ne "") {
+ print "Uptime : $uptime\n";
+}
if (!(-e $debsfile)) {
exit 0;
}