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">
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: Airport Location, Apple Mac OS X Tiger, Network Location Script, Set Airport MTU
Article Link posted by Edward at 7:21 PM