simplified detach
This commit is contained in:
parent
e1e5e63fd7
commit
9a84763b97
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue