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
do
TARGET=$( mount | grep -E "^${PROVIDER} " | awk '{print $3}' )
[ -z ${TARGET} ] && {
__state_remove ${MNT} ${STATE}
continue
}
[ -z ${TARGET} ] && continue
umount -f ${TARGET} &
unset TARGET
__state_remove ${MNT} ${STATE}
__log "${DEV}:umount"
done
__state_unlock