diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2010-06-09 11:31:45 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2010-07-23 15:57:07 -0500 |
commit | 6a2726cb66e235a2bc76c913bccb193b259b26a7 (patch) | |
tree | 365f71a800a73c5b380378e5069c98713b1e2d93 /netfs | |
parent | 5a8e472335e58f3e2310b8d8161384af95f4c2a6 (diff) |
Bashify netfs
Diffstat (limited to 'netfs')
-rwxr-xr-x | netfs | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -12,8 +12,7 @@ case "$1" in /bin/mount -a -t nfs,nfs4,smbfs,codafs,ncpfs,cifs,shfs,glusterfs,fuse,fuseblk,fuse.glusterfs rc=$? /bin/mount -a -O _netdev - rc=$(($rc+$?)) - if [ $rc -gt 0 ]; then + if ((rc + $? > 0)); then stat_fail else add_daemon netfs @@ -25,8 +24,7 @@ case "$1" in /bin/umount -a -O _netdev rc=$? /bin/umount -a -t nfs,nfs4,smbfs,codafs,ncpfs,cifs,shfs,glusterfs,fuse,fuseblk,fuse.glusterfs - rc=$(($rc+$?)) - if [ $rc -gt 0 ]; then + if ((rc + $? > 0)); then stat_fail else rm_daemon netfs |