diff --git a/automount.sh b/automount.sh index 2094774..13b7a88 100755 --- a/automount.sh +++ b/automount.sh @@ -162,7 +162,7 @@ case ${2} in (detach) __state_lock - grep -E "${1}$" ${STATE} \ + grep -E "${PREFIX}/${1}$" ${STATE} \ | while read DEV PROVIDER MNT do TARGET=$( mount | grep -E "^${PROVIDER} " | awk '{print $3}' )