2 # Takes directory as parameter
7 #echo -n "Trying to acquire lock in '$1' ."
8 while ! `mkdir "$1/.lock" &> /dev/null`; do
12 if [ $I -gt 10 ]; then
13 echo "Failed to acquire lock '`pwd`/.lock'"
23 #echo "Removing lock in '$1'"
24 rmdir "$1/.lock" &> /dev
/null