[AVFS] AVFS environment variable
Peter <[email protected]> Fri, 8 Jun 2007 21:47:52 +0000 (UTC)
| Newsgroups | gmane.comp.file-systems.avfs.user |
|---|---|
| Message-ID | <[email protected]> |
As most users will use fuse with avfs, the process of always using
$HOME/.avfs/..... gets cumbersome when viewing compressed files, ftp
sites, etc.
Setting an environment variable, AVFS=$HOME/.avfs makes accessing these
files a little easier. An export statement could be added to the
mountavfs program to do this. Similarly, umountavfs could unset it.
mountavfs:
MntDir=${HOME}/.avfs
grep -q "avfsd ${MntDir}" /proc/mounts || {
echo Mounting AVFS on $MntDir...
avfsd $MntDir
echo "1" >"$MntDir/#avfsstat/symlink_rewrite"
export AVFS=$MntDir
}
umountavfs:
MntDir=${HOME}/.avfs
grep -q "avfsd ${MntDir}" /proc/mounts && {
echo unMounting AVFS on $MntDir...
fusermount -u $MntDir
unset AVFS
}
Of course, this can all be done during the logon/logout sequence without
changing the existing programs. For me, it's just a little less clutter.
--
Peter
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/