simplified detach

This commit is contained in:
Slawomir Wojciech Wojtczak (vermaden) 2012-02-20 17:24:30 +01:00
parent e1e5e63fd7
commit 9a84763b97
1 changed files with 2 additions and 5 deletions

View File

@ -165,13 +165,10 @@ case ${2} in
| while read DEV PROVIDER MNT | while read DEV PROVIDER MNT
do do
TARGET=$( mount | grep -E "^${PROVIDER} " | awk '{print $3}' ) TARGET=$( mount | grep -E "^${PROVIDER} " | awk '{print $3}' )
[ -z ${TARGET} ] && { __state_remove ${MNT} ${STATE}
__state_remove ${MNT} ${STATE} [ -z ${TARGET} ] && continue
continue
}
umount -f ${TARGET} & umount -f ${TARGET} &
unset TARGET unset TARGET
__state_remove ${MNT} ${STATE}
__log "${DEV}:umount" __log "${DEV}:umount"
done done
__state_unlock __state_unlock