summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/vyatta-show-version6
-rw-r--r--templates/show/system/uptime/node.def3
2 files changed, 8 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;
}
diff --git a/templates/show/system/uptime/node.def b/templates/show/system/uptime/node.def
new file mode 100644
index 0000000..92611fb
--- /dev/null
+++ b/templates/show/system/uptime/node.def
@@ -0,0 +1,3 @@
+help: Show how long the system has been up
+run: uptime
+