Skip to content

Instantly share code, notes, and snippets.

@sckn
Created May 1, 2017 19:58
Show Gist options
  • Save sckn/fa3732b61b028906e67e6327249ba011 to your computer and use it in GitHub Desktop.
Save sckn/fa3732b61b028906e67e6327249ba011 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" \
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>networkchange</string>
<key>LowPriorityIO</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/cgw</string>
</array>
<key>WatchPaths</key>
<array>
<string>/etc/resolv.conf</string>
<string>/var/run/resolv.conf</string>
<string>/private/var/run/resolv.conf</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
<!--
vim /Library/LaunchAgents/networkchange.plist
sudo chown root /Library/LaunchAgents/networkchange.plist
sudo launchctl load /Library/LaunchAgents/networkchange.plist
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment