Chris H
Oct 20 2008, 05:40 AM
Due to a buggy driver for my rt2500 wifi chipset I have to manually run this below each time I start.
$ su
# iwconfig wlan0 rate 54M
Any idea how to autostart this, seeing as it requires a password input?
Ta
[moved from Software by spinynorman]
ianw1974
Oct 20 2008, 06:26 AM
You could add it to /etc/rc.local and then each time your system starts, it will be set automatically for you. Just add it as you type it except that you don't need to include the su bit, just the iwconfig line.
scarecrow
Oct 20 2008, 09:28 AM
Or, you can add iwconfig to the nopasswd exceptions of your sudoers file ( "visudo" in a root console) , and call it via "sudo iwconfig wlan0 rate 54M" from any user startup script, e.g. the gnome startup manager, or .bashrc, or...
You must belong to the "wheel" group to be able to use sudo.
In some distros (dunno about Mandriva) you can run iwconfig as plain user if you belong to the "network" group.
Chris H
Oct 20 2008, 11:31 AM
Thanks for the suggestions, will give it a go tonight.
Ta.
aioshin
Oct 20 2008, 06:55 PM
or you can insert that to your /etc/rc.local file... all are being run as root at boot
ianw1974
Oct 20 2008, 07:12 PM
QUOTE (aioshin @ Oct 20 2008, 08:55 PM)

or you can insert that to your /etc/rc.local file... all are being run as root at boot
That's what I said above:
http://mandrivausers.org/index.php?s=&...st&p=523524
aioshin
Oct 21 2008, 05:43 PM

yay, sorry for that Ian...

I cant recall how come I have not read it.
ianw1974
Oct 22 2008, 10:49 AM
Is OK, I do it too
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.