How do you automatically mount a network attached drive on connection to a specific network? I am using NetworkManager which automatically connects my laptop to my home VPN when on WiFi but I still have to manually mount my samba shares. They are set up in fstab the usual way such that I can run
Code:
mount /path/to/share/
and it will mount it but I would like to automate this process.
However, I can't simply use fstab auto-mount on boot because I often disconnect and reconnect to different networks and then connect to my VPN after that. It is upon connection to the VPN that I would like to mount the share.