From 6a2726cb66e235a2bc76c913bccb193b259b26a7 Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Wed, 9 Jun 2010 11:31:45 -0500 Subject: Bashify netfs --- netfs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'netfs') diff --git a/netfs b/netfs index cdfdf98..d4a926f 100755 --- a/netfs +++ b/netfs @@ -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 -- cgit v1.2.3