removed useless function argument ${LINE}

This commit is contained in:
Slawomir Wojciech Wojtczak (vermaden) 2012-02-20 17:21:01 +01:00
parent e4dcb04c8b
commit e1e5e63fd7
1 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ __state_add() { # /* 1=DEV 2=PROVIDER 3=MNT */
__state_unlock __state_unlock
} }
__state_remove() { # /* 1=MNT 2=STATE 3=LINE */ __state_remove() { # /* 1=MNT 2=STATE */
BSMNT=$( echo ${1} | sed 's/\//\\\//g' ) # /* backslash the slashes ;) */ BSMNT=$( echo ${1} | sed 's/\//\\\//g' ) # /* backslash the slashes ;) */
sed -i '' "/${BSMNT}\$/d" ${2} sed -i '' "/${BSMNT}\$/d" ${2}
} }
@ -166,12 +166,12 @@ case ${2} in
do do
TARGET=$( mount | grep -E "^${PROVIDER} " | awk '{print $3}' ) TARGET=$( mount | grep -E "^${PROVIDER} " | awk '{print $3}' )
[ -z ${TARGET} ] && { [ -z ${TARGET} ] && {
__state_remove ${MNT} ${STATE} ${LINE} __state_remove ${MNT} ${STATE}
continue continue
} }
umount -f ${TARGET} & umount -f ${TARGET} &
unset TARGET unset TARGET
__state_remove ${MNT} ${STATE} ${LINE} __state_remove ${MNT} ${STATE}
__log "${DEV}:umount" __log "${DEV}:umount"
done done
__state_unlock __state_unlock