aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-18 00:08:54 -0500
committerDave Reisner <d@falconindy.com>2010-01-18 00:08:54 -0500
commitde17d5490f7c3e50f71dc57815ee265b11fcdcc5 (patch)
tree7b8275df5de984794d22c40ab86235075a263ba1
parentdcff2ddd3f856648487adfe95b4778961c8a4f59 (diff)
downloadsquashfu-de17d5490f7c3e50f71dc57815ee265b11fcdcc5.tar.gz
Conform -U option to set action and not immediately execute
-rwxr-xr-xsquashfu7
1 files changed, 5 insertions, 2 deletions
diff --git a/squashfu b/squashfu
index 6c43084..c6e211e 100755
--- a/squashfu
+++ b/squashfu
@@ -352,6 +352,10 @@ action_resquash_now () {
exit $?
}
+action_unmount () {
+ unmount_all
+}
+
usage () {
info "SquashFu: Super Awesome Backup Express (Professional Edition)"
echo "version: $VER"
@@ -400,8 +404,7 @@ while getopts :BCQR:U opt; do
action="rollback $OPTARG"
;;
U)
- unmount_all
- exit 0
+ action=unmount
;;
c)
[[ -f $OPTARG ]] && source $OPTARG