1

Is there a way in /etc/fstab that I can wait for the VPN connection to be made, and then mount the network drives?

Kevin
  • 354
  • 1
  • 4
  • 23
  • you can of course combine it in one script; connect to VPN and mount (immediately after connection is established). Is that what you want to achieve? – Jacob Vlijm Apr 30 '14 at 17:59
  • Well... connect happens when the machine starts, so no need to automate that part of it... once that connection is established though, that's when I want to mount the drive(s) – Kevin Apr 30 '14 at 18:01

1 Answers1

1

if you use the noauto option in the fstab line the filesystem will NOT be automatically mounted at start-up. You can then later mount the filesystem explicitly with a dispatcher script for NetworkManager which is automatically executed when the VPN is successfully connected.

mtron
  • 76
  • gotcha... think you may take a gander: http://askubuntu.com/questions/458266/l2tp-ipsec-vpn-disconnect-issues – Kevin Apr 30 '14 at 17:53