summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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`;