From ebcdad04c9eb8c68849ffc971d7558b09e5b4240 Mon Sep 17 00:00:00 2001 From: "Slawomir Wojciech Wojtczak (vermaden)" Date: Mon, 20 Feb 2012 16:41:53 +0100 Subject: [PATCH] detach improvements --- automount.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}' )