if [ $? = 0 ]; then umount $MP 2> /dev/null fi RC=$? else # it is not mounted RC=0 fi
if [ $? = 0 ]; then if [ "$MP" != "/" ] ; then umount $MP 2> /dev/null ; fi RC=$? else # it is not mounted RC=0 fi