Jump to content

Autostart as root


Recommended Posts

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]

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...