[arch-projects] [initscripts] [PATCH 14/17] netfs: Strip paths from binaries
Kurt J. Bosch
kjb-temp-2009 at alpenjodel.de
Tue Jul 5 18:02:26 EDT 2011
We set $PATH in functions now, so use it.
---
netfs | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/netfs b/netfs
index 2bcec6c..7ca59ab 100755
--- a/netfs
+++ b/netfs
@@ -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
--
1.7.1
More information about the arch-projects
mailing list