diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2008-01-16 19:03:41 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2008-01-16 19:03:41 -0800 |
commit | b1343445b5763d707f228719859aec88e62c715c (patch) | |
tree | dd2b842a5fedd50525d2a08525cef52b4e76ede8 /scripts/vyatta-show-version | |
parent | 54bfcb0a3a34e98ee95c135a56db8776e4d8296c (diff) | |
download | vyatta-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-x | scripts/vyatta-show-version | 6 |
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; } |