I have configured the VPN connection in OS X 10.7.3, but since the network I'm connecting to uses a corporate proxy, has custom Maven repository servers, and other network-specific settings (remote drives, for instance), I want to run a script on logon/logoff of a VPN to:
- change the Maven
~/.m2/settings.xmlto point to their maven repo
- map a few
- alias some commands to use their servers
I don't know how to accomplish this, though.
- How do you execute a script or set of commands automatically on logon?
- How do you execute a script or set of commands automatically on logoff?