View Single Post
Posts: 2 | Thanked: 0 times | Joined on Feb 2011
#10
Hi,

For a wifi connection that I frequently use, this "MTU" trick greatly helps.

However, I would like to avoid typing ifconfig wlan0 mtu 1400 as root, after each reboot.

So I've tried to write an upstart script :
- created a file /etc/event.d/fix-mtu
- added the following content to that file :
Code:
start on startup
console output

script
ifconfig wlan0 mtu 1400
end script
When I run it by doing initctl start fix-mtu it works, but after reboot wlan0's MTU is still set to 1500, so it seems that my "fix-mtu" script is executed "too early" at reboot, or not executed at all... Maybe I should change something on the "start on" line ? Any piece of advice would be appreciated