summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-01-04 14:27:49 -0800
committerBob Gilligan <gilligan@vyatta.com>2010-01-04 14:27:49 -0800
commita6a1a5f9bba5e7eb404d668787394d51e4829321 (patch)
tree37dffbd6707738a6bcca2b93ed39de3caad69c2b
parent05aa90ed8f0b863f12139be8f01c8b7b4fda3e54 (diff)
downloadvyatta-op-a6a1a5f9bba5e7eb404d668787394d51e4829321.tar.gz
vyatta-op-a6a1a5f9bba5e7eb404d668787394d51e4829321.zip
Indicate when system was booted via image.
-rwxr-xr-xscripts/vyatta-show-version7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/vyatta-show-version b/scripts/vyatta-show-version
index f8f291a..64f8aa0 100755
--- a/scripts/vyatta-show-version
+++ b/scripts/vyatta-show-version
@@ -158,7 +158,12 @@ my $booted = `grep -e '^unionfs.*/filesystem.squashfs' -e '^aufs.*/filesystem.sq
if (defined($booted) && $booted ne "") {
$booted="livecd";
} else {
- $booted="disk";
+ my $image_boot = `grep -e '^unionfs / unionfs.*squashfs=ro' /proc/mounts`;
+ if ($image_boot ne "") {
+ $booted="image";
+ } else {
+ $booted="disk";
+ }
}
print "Boot via : $booted\n";
my $uptime = `uptime`;