From b1343445b5763d707f228719859aec88e62c715c Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Wed, 16 Jan 2008 19:03:41 -0800 Subject: Add uptime to 'show version' and add 'show system uptime' --- scripts/vyatta-show-version | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') 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; } -- cgit v1.2.3