[AVFS] Minor tweekage to mountavfs attached: avfs-mountavfs.patch

Kelly Anderson <kelly-qaNcByWzZlFJWwdE0/[email protected]> Wed, 28 Nov 2007 17:07:12 -0700
Newsgroups gmane.comp.file-systems.avfs.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------050109090702040507070104
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Attached is a minor patch to mountavfs to create the '.avfs' dir when 
needed.

--------------050109090702040507070104
Content-Type: text/plain;
 name="avfs-mountavfs.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="avfs-mountavfs.patch"

--- ./scripts/mountavfs.orig	2006-04-05 11:19:09.000000000 -0600
+++ ./scripts/mountavfs	2007-11-28 16:44:22.442646655 -0700
@@ -4,12 +4,13 @@
 # companion program to umountavfs
 # will check to see if avfs is mounted and then
 # load the avfsd daemon which will mount avfs.
-# last updated 20051201
+# last updated 20071128
 
 # suggested use: in a login script or wm startup routine
 
 MntDir=${HOME}/.avfs
 grep -q "avfsd ${MntDir}" /proc/mounts || {
+   test -d $MntDir || mkdir $MntDir
    echo Mounting AVFS on $MntDir...
    avfsd $MntDir
    echo "1" >"$MntDir/#avfsstat/symlink_rewrite"

--------------050109090702040507070104
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
--------------050109090702040507070104
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Avf-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/avf-user

--------------050109090702040507070104--