--- avfs-0.9.8/scripts/mountavfs.orig 2008-03-19 10:19:28.000000000 +0100 +++ avfs-0.9.8/scripts/mountavfs 2008-03-19 10:20:23.000000000 +0100 @@ -9,6 +9,10 @@ # suggested use: in a login script or wm startup routine MntDir=${HOME}/.avfs + +# create directory if it does not exist +[ ! -d ${MntDir} ] && mkdir ${MntDir} + grep -q "avfsd ${MntDir}" /proc/mounts || { echo Mounting AVFS on $MntDir... avfsd $MntDir