diff options
author | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-07-05 22:53:20 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-07-10 21:54:37 +0200 |
commit | 89a56bde72418c289155b3eb5725f10f146899f6 (patch) | |
tree | 00893147e2eef833021a27f4dc02802d64c6967e | |
parent | 4cc6dba9c7c709c40b8e70df68569cc9a34e4b69 (diff) |
netfs: Strip paths from binaries
We set $PATH in functions now, so use it.
-rwxr-xr-x | netfs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -9,9 +9,9 @@ rc=0 case "$1" in start) stat_busy "Mounting Network Filesystems" - /bin/mount -a -t nfs,nfs4,smbfs,codafs,ncpfs,cifs,shfs,glusterfs,fuse,fuseblk,fuse.glusterfs,davfs + mount -a -t nfs,nfs4,smbfs,codafs,ncpfs,cifs,shfs,glusterfs,fuse,fuseblk,fuse.glusterfs,davfs rc=$? - /bin/mount -a -O _netdev + mount -a -O _netdev if ((rc + $? > 0)); then stat_fail else @@ -21,9 +21,9 @@ case "$1" in ;; stop) stat_busy "Unmounting Network Filesystems" - /bin/umount -a -O _netdev + umount -a -O _netdev rc=$? - /bin/umount -a -t nfs,nfs4,smbfs,codafs,ncpfs,cifs,shfs,glusterfs,fuse,fuseblk,fuse.glusterfs,davfs + umount -a -t nfs,nfs4,smbfs,codafs,ncpfs,cifs,shfs,glusterfs,fuse,fuseblk,fuse.glusterfs,davfs if ((rc + $? > 0)); then stat_fail else |