Commit ff77c80b authored by Konstantin Baev's avatar Konstantin Baev

fix RT ticket 7479 and bug Eter#2898

parent 1e7f0869
......@@ -109,6 +109,15 @@ umount_cifs()
echo -n "Unmounting CIFS resources... "
umount -t cifs -a || { failure ; return 1; }
success
if cat /proc/mounts | grep ' cifs ' ; then
echo -n "Unmounting lost CIFS resources..."
# we have something to unmount, which is not in /etc/mtab
for i in $(cat /proc/mounts | grep ' cifs ' | cut -d' ' -f2); do
umount "$i" || { failure; return 1; }
done
success
fi
}
mount_cifs()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment