From 9a84763b979b7e8ca6c2bab123621f2a9fe98d10 Mon Sep 17 00:00:00 2001 From: "Slawomir Wojciech Wojtczak (vermaden)" Date: Mon, 20 Feb 2012 17:24:30 +0100 Subject: [PATCH] simplified detach --- automount.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/automount.sh b/automount.sh index 3cd94ca..a739248 100755 --- a/automount.sh +++ b/automount.sh @@ -165,13 +165,10 @@ case ${2} in | while read DEV PROVIDER MNT do TARGET=$( mount | grep -E "^${PROVIDER} " | awk '{print $3}' ) - [ -z ${TARGET} ] && { - __state_remove ${MNT} ${STATE} - continue - } + __state_remove ${MNT} ${STATE} + [ -z ${TARGET} ] && continue umount -f ${TARGET} & unset TARGET - __state_remove ${MNT} ${STATE} __log "${DEV}:umount" done __state_unlock