From e1e5e63fd7213fdf238fcc24dace0adc3519bb79 Mon Sep 17 00:00:00 2001 From: "Slawomir Wojciech Wojtczak (vermaden)" Date: Mon, 20 Feb 2012 17:21:01 +0100 Subject: [PATCH] removed useless function argument ${LINE} --- automount.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/automount.sh b/automount.sh index 26cd0a6..3cd94ca 100755 --- a/automount.sh +++ b/automount.sh @@ -74,7 +74,7 @@ __state_add() { # /* 1=DEV 2=PROVIDER 3=MNT */ __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 ;) */ sed -i '' "/${BSMNT}\$/d" ${2} } @@ -166,12 +166,12 @@ case ${2} in do TARGET=$( mount | grep -E "^${PROVIDER} " | awk '{print $3}' ) [ -z ${TARGET} ] && { - __state_remove ${MNT} ${STATE} ${LINE} + __state_remove ${MNT} ${STATE} continue } umount -f ${TARGET} & unset TARGET - __state_remove ${MNT} ${STATE} ${LINE} + __state_remove ${MNT} ${STATE} __log "${DEV}:umount" done __state_unlock