On my system (Intrepid), rc scripts are run with /bin/sh rather than /bin/bash so the array syntax in umountcifs was failing and I was still getting the error messages on shutdown/restart.
I've changed the "stop" routine in the script to
Code:
stop() {
echo "Unmounting samba-cifs filesystems..."
mount -t cifs | cut -d\ -f3 | xargs -L 1 umount -l
}
(which should work in both bash and sh) and it now works perfectly.
I'm fairly new to Ubuntu so I'll apologise in advance if there was a more obvious solution.
Bookmarks