I have no problem mounting my shares (fstab or Gigolo). What I looking for is a way to automatically unmount the shares when I disconnect from the network and reconnect when I return. Gigolo seems close. It reconnects fine, but I still seem to have to manually disconnect from each share individually.
You will have to write a script. This is a skeleton / template, call it net_mount and put it in
Make it executable
|show 2 more comments|
I found exactly what I was looking for in the Ubuntu Forums.
It automatically mounts and unmounts shares as they come and go. I've used this method on Ubuntu 11.10, 12.04, and Debian Squeeze and it works flawlessly.