fixed tomb umount

correctly checks error status of umount
This commit is contained in:
Jaromil 2011-09-03 12:43:21 +02:00
parent 5eebc89e48
commit cb6fa07416

View File

@ -994,10 +994,11 @@ umount_tomb() {
if [ $tombmount ]; then # tomb is actively mounted
func "performing umount of $tombmount"
umount ${tombmount} 2> /dev/null
rmdir ${tombmount}
umount ${tombmount}
if ! [ $? = 0 ]; then
error "Tomb is busy, cannot umount!"
else
rmdir ${tombmount}
fi
fi