- Create a service file like
- Put it in
- Enable auto start using command:
systemctl enable MYSERVICE.service
- addon (thanks @nadrimajstor) : after network is up in [Unit]
|-- Please set your vpn connection name and password here|
|set VPNName to "VPN name"|
|set VPNpassword to "VPN password"|
|set window_prompt to "Enter Username and Password." -- this works for OS X 10.8.5, check yours.|
|tell application "System Events"|
|tell current location of network preferences|
|set VPNService to service VPNName|
This is all based on the [alpha release].
From the built-in help system:
For many settings TextMate will look for a .tm_properties file in the current folder and in any parent folders (up to the user’s home folder).
These are simple setting = value listings where the value is a format string in which other variables can be referenced.