FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 06-30-2010, 09:47 PM
Victor Lowther
 
Default Bashify netfs

---
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,fu se,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,fu se,fuseblk,fuse.glusterfs
- rc=$(($rc+$?))
- if [ $rc -gt 0 ]; then
+ if ((rc + $? > 0)); then
stat_fail
else
rm_daemon netfs
--
1.7.1
 

Thread Tools




All times are GMT. The time now is 12:37 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org