Reply
Thread Tools
Posts: 58 | Thanked: 31 times | Joined on Feb 2010 @ Shittown
#11
Originally Posted by FrostyZ View Post
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
Try different startup code, depending on when do you need to run the script.
Example:
Code:
start on started hildon-desktop
Code:
start on started wlancond

Last edited by Necc; 2011-02-17 at 14:38.
 

The Following User Says Thank You to Necc For This Useful Post:
Posts: 2 | Thanked: 0 times | Joined on Feb 2011
#12
Necc, many thanks for your quick and accurate answer !
It worked like a charm.
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:55.