View Single Post
JELaVallee's Avatar
Posts: 8 | Thanked: 0 times | Joined on Mar 2008 @ Richmond, VA, USA
#37
Originally Posted by qole View Post
... Theoretically, you should be able to put your mount statements into /etc/fstab as "no auto" and then mount them once you connect to the network, but I can't test that since "regular" mount doesn't work for me.
...
You may want to try this:
  1. Create a bash script with the mount commands for your various smb shares that you want to mount.
  2. Copy the script to /etc/network/if-up.d/

In theory (and all appropriate disclaimers to such), this should attempt to establish your mounts every time your network successfully connects. I'm still working out how you could make this sensitive to executing only for particular connections (e.g. only mount home computer shares when your connection SSID is your home wireless router, etc.)

I'll play with it tonight and let you know the results.

Qole: Have you tried using vanilla mount with the object credentials PRE-ceding the mount point details in your command line argument list? I think I saw that as a possible solution either in this thread or elsewhere in the forums.

Cheers,
Etienne