ControlPlane
ControlPlane copied to clipboard
Can "Changing Network Location" be added to the Evidence Sources?
System Preferences --> Network --> Location(s)
Is that possible? For me it would be very handy.
I have setup multiple network locations with different DNS servers. When changing a network location, I manually run a script to flush my dns cache. It would be nice if this can be automated with ControlPlane. So when I change a network location, ControlPlane runs a shell script to flush the dns.
Cheers
I had a similar need. With 1.6.4,
- Setup a context for each network location
- Create a Shellscript action on arrival with each context to run a configuration shell script.
- Create a Network Location action to change to for each context.
The bonus is don't have to dig into the System Preferences to change location, and just use ControlPlane system applet to change network locations.
Changing the network location, specifically, doesn't work very well if you're keying contexts off of any network based evidence sources. It causes ControlPlane to flop back and forth between contexts.
That's why I change context manually, and it changes network location settings for me. I could not figure out have to change contexts based the location changing reliably (or at all).