X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fbootscripts%2Fmountnetfs;h=d812d80afcd278e33de47be4290c4cf2c89c3b8c;hb=f9cf3632a64429991fa5e6f556b0c4017e0e9435;hp=d397af792268797f7b4889890608579e76ba0a6d;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage2/bootscripts/mountnetfs b/stage2/bootscripts/mountnetfs index d397af7..d812d80 100755 --- a/stage2/bootscripts/mountnetfs +++ b/stage2/bootscripts/mountnetfs @@ -27,7 +27,7 @@ mountnetfs_stop() { # did, then give 3 seconds for things to exit # the nice way before killing them off. # This one will work all of the time! - if [ $? == 0 ]; then + if [ $? -eq 0 ]; then /bin/sleep 3 /bin/fuser -km $NETMOUNTS > /dev/null fi @@ -40,7 +40,7 @@ mountnetfs_stop() { /bin/umount -a -O _netdev # save the return value from umount - if [ $? != 0 ]; then + if [ $? -ne 0 ]; then NERRVAL=${EXIT_CODE_FAILURE} fi @@ -48,7 +48,7 @@ mountnetfs_stop() { # by fstype. This list can be extended later as # more network filesystems are supported by mount. /bin/umount -a -t coda,ncpfs,nfs,smbfs - if [ $? == 0 ]; then + if [ $? -eq 0 ]; then return ${NERRVAL} else # make certain that we return an error