Tel 678.697.4783
Fax 678.840.7870
Po Box 4432
Marietta, Ga 30061
info@jamboconsulting.com

 Subscribe in a reader



Lunarpages.com Web Hosting
Web hosting by ICDSoft

Archives

Previous Posts

Powered by Blogger

Thursday, December 06, 2007

OS X 10.4 - Set Airport MTU based on Network Location

This is the script I used to set the Airport MTU in OS 10.4. In Leopard there doesn't seem to be a need to tweak your MTU settings for those finicky PPPoE DSL connections anymore.

The script is based on a post from Mac OSX Hints and TECH.inhelsinki.nl.

~/Library/LaunchAgents/LocationChanger.plist:



"http://www.apple.com/DTDs/PropertyList-1.0.dtd">


Label
tech.inhelsinki.nl.locationchanger
ProgramArguments

/Users/Applications/airport-mtu

WatchPaths

/Library/Preferences/SystemConfiguration





airport-mtu:
#!/bin/bash

echo "***Setting airport mtu 1492" >> /var/log/system.log
/sbin/ifconfig en1 mtu 1492
echo "***Airport mtu set" >> /var/log/system.log
echo "***Unloading mtu.plist" >> /var/log/system.log
/bin/launchctl unload /System/Library/LaunchDaemons/mtu.plist
exit 0

Labels: , , ,

Article Link posted by Edward at 7:21 PM

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home