Skip to content

Instantly share code, notes, and snippets.

@eduo
Created August 18, 2014 08:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eduo/c7a022a2d5c7c1e19159 to your computer and use it in GitHub Desktop.
Save eduo/c7a022a2d5c7c1e19159 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Assumes script is named WiFiOrEth.sh in home directory -->
<!-- Edit, then unload and reload -->
<!-- launchctl unload ~/Library/LaunchAgents/info.eduo.WiFiOrEth.plist; -->
<!-- launchctl load ~/Library/LaunchAgents/info.eduo.WiFiOrEth.plist -->
<plist version="1.0">
<dict>
<key>Label</key>
<string>info.eduo.WiFiOrEth</string>
<key>EnableGlobbing</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>~/WiFiOrEth.sh</string>
</array>
<key>StandardOutPath</key>
<string>/var/log/info.eduo.WiFiOrEth.log</string>
<key>StandardErrorPath</key>
<string>/var/log/info.eduo.WiFiOrEth.log</string>
<key>Debug</key>
<true/>
<key>WatchPaths</key>
<array>
<string>/Library/Preferences/SystemConfiguration</string>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment