diff options
Diffstat (limited to 'rescue/Flash')
-rw-r--r-- | rescue/Flash/scripts/rescue_common | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rescue/Flash/scripts/rescue_common b/rescue/Flash/scripts/rescue_common index 97f25385d..f8e657d72 100644 --- a/rescue/Flash/scripts/rescue_common +++ b/rescue/Flash/scripts/rescue_common @@ -8,6 +8,7 @@ function detect_version() { elif has_label MDV_FLASH; then version="2.0" fi + usbroot_device=$_device } function has_label() { @@ -24,6 +25,9 @@ EOF rc=$? + _device=`perl -ne 'my @l = split; $l[1] eq "'$_tmpdir'" and print "$l[0]\n"' /proc/mounts` + [ -z "$_device" ] && rc=1 + umount $_tmpdir 2> /dev/null rmdir $_tmpdir 2> /dev/null |