Mar 09

At my office, I needed to find a way to turn of the wireless network when someone plugged in their network cable. I also did not want them to be able to turn the wireless network back on until the network cable was unplugged. I came up with the fallowing solution.

I created a launchDaemon called com.companyname.ethernetmonitor, and saved it in /System » Library » LaunchDaemons:

<?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">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.companyname.ethernetmonitor</string>
<key>ProgramArguments</key>
<array>
<string>/Library/Scripts/CompanyName/turnOffAirp...

Add to digg
Add to Reddit
Add to Slashdot
Email this Article
Add to StumbleUpon



Go to Source

Leave a Reply

You must be logged in to post a comment.

preload preload preload