---
netfs | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
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
--
1.7.1- Re: [arch-general] [PATCH 21/48] Both rc.... Dave Reisner
- Re: [arch-general] [PATCH 21/48] Bot... Kurt J. Bosch
- Re: [arch-general] [PATCH 21/48]... Dave Reisner
- Re: [arch-general] [PATCH 21/48]... Kurt J. Bosch
- Re: [arch-general] [PATCH 21/48]... Dave Reisner
- Re: [arch-general] [PATCH 21/48]... Kurt J. Bosch
- Re: [arch-general] [PATCH 21/48]... Dave Reisner
- Re: [arch-general] [PATCH 21/48]... Victor Lowther
- Re: [arch-general] [PATCH 21/48]... Kurt J. Bosch
- Re: [arch-general] [PATCH 21/48]... Kurt J. Bosch
- [arch-general] [PATCH 41/48] Bashify netfs Victor Lowther
- [arch-general] [PATCH 19/48] Simplify daemon-killing loops... Victor Lowther
- Re: [arch-general] [PATCH 01/48] Bashification of initscri... Thomas Bächler
- Re: [arch-general] [PATCH 01/48] Bashification of ini... Victor Lowther
- Re: [arch-general] [PATCH 01/48] Bashification of... Thomas Bächler
- Re: [arch-general] [PATCH 01/48] Bashification of... Caleb Cushing
- Re: [arch-general] [PATCH 01/48] Bashificatio... Victor Lowther
- Re: [arch-general] [PATCH 01/48] Bashification of initscri... Allan McRae
- Re: [arch-general] [PATCH 01/48] Bashification of ini... Dan McGee
- Re: [arch-general] [PATCH 01/48] Bashification of... Victor Lowther
- Re: [arch-general] [PATCH 01/48] Bashification of... Thomas Bächler

