diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2010-01-04 14:27:49 -0800 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2010-01-04 14:27:49 -0800 |
commit | a6a1a5f9bba5e7eb404d668787394d51e4829321 (patch) | |
tree | 37dffbd6707738a6bcca2b93ed39de3caad69c2b | |
parent | 05aa90ed8f0b863f12139be8f01c8b7b4fda3e54 (diff) | |
download | vyatta-op-a6a1a5f9bba5e7eb404d668787394d51e4829321.tar.gz vyatta-op-a6a1a5f9bba5e7eb404d668787394d51e4829321.zip |
Indicate when system was booted via image.
-rwxr-xr-x | scripts/vyatta-show-version | 7 |
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`; |