Skip to content

Instantly share code, notes, and snippets.

@krzko
Created September 4, 2020 01:42
Show Gist options
  • Save krzko/78272a41a11d06f789954d73bc2b2357 to your computer and use it in GitHub Desktop.
Save krzko/78272a41a11d06f789954d73bc2b2357 to your computer and use it in GitHub Desktop.
Network change plist, to be used with check_alpaca.sh
<?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>ifup.alpaca</string>
<key>LowPriorityIO</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/Users/your_username/.local/bin/check_alpaca.sh</string>
</array>
<key>WatchPaths</key>
<array>
<string>/etc/resolv.conf</string>
<string>/Library/Preferences/SystemConfiguration/NetworkInterfaces.plist</string>
<string>/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment