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