Just how to automount a network share as soon as OpenVPN has attached? (Making use of Tunnelblick)
Does any person recognize just how to instantly place a network share as soon as a VPN link making use of Tunnelblick has attached?
Now I need to connect and afterwards do a cmd+ K in the finder to connect to the AFP share. It would certainly behave if it would certainly connect instantly.
The share does not have a password (TimeCapsule with no passwords, and also no, not utilizing it for backup, we utilize it for a fileserver).
Modify the documents
/Applications/Tunnelblick.app/Contents/Resources/client.up.osx.sh and also add these commands at the end of the documents, prior to
exit 0 :
su USERNAME -c ' mkdir /Volumes/TimeCapsule mount_afp afp://[email protected]/volumename /Volumes/TimeCapsule ' open /Volumes/TimeCapsule
Change USERNAME with your username on the system.
After that add the adhering to at the end of
Do not neglect to examine the
set nameserver alternative for your arrangement :
Warning : Configuration documents
client.(up|down).osx.sh are implemented for every single links used OpenVPN.
This can additionally be used
launchd for seeing if the vpn link is up, yet I do not recognize just how to make use of launchd.