maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Set MTU for N900 (https://talk.maemo.org/showthread.php?t=66100)

Necc 2011-02-17 14:30

Re: Set MTU for N900
 
Quote:

Originally Posted by FrostyZ (Post 948907)
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

FrostyZ 2011-02-17 22:36

Re: Set MTU for N900
 
Necc, many thanks for your quick and accurate answer ! :)
It worked like a charm.


All times are GMT. The time now is 13:16.

vBulletin® Version 3.8.8