# 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
/bin/umount -a -O _netdev
# save the return value from umount
- if [ $? != 0 ]; then
+ if [ $? -ne 0 ]; then
NERRVAL=${EXIT_CODE_FAILURE}
fi
# 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