diff options
Diffstat (limited to 'scripts')
-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`; |