MErge en cours x86_64 -> trunk
[hvlinux.git] / stage2 / bootscripts / mountnetfs
index d397af7..d812d80 100755 (executable)
@@ -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