summaryrefslogtreecommitdiffstats
path: root/rescue/Flash/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/Flash/scripts')
-rw-r--r--rescue/Flash/scripts/rescue_common6
1 files changed, 6 insertions, 0 deletions
diff --git a/rescue/Flash/scripts/rescue_common b/rescue/Flash/scripts/rescue_common
index 279e5762f..e1402cacc 100644
--- a/rescue/Flash/scripts/rescue_common
+++ b/rescue/Flash/scripts/rescue_common
@@ -186,3 +186,9 @@ function progress() {
usleep 100000
}
+function lumount() {
+ local dir=$1
+ loop=$(perl -ne '@l = split; if ($l[1] eq "'$dir'") { print $l[0]; exit }' /proc/mounts)
+ umount $dir
+ losetup -d $loop
+}