What do I have to edit to make a module start on boot?
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What do I have to edit to make a module start on boot?
Here's a question for you guys:
After playing with the ndiswrapper all day I finally got it to work. The only problem is, every time I boot I have to activate the module and establish an IP. What a pain. After boot and login I have to type:
modprobe ndiswrapper
iwconfig wlan0 key s:XXXXX
dhcpcd wlan0
When I set the WEP key for my router my ESSID and all the other settings are automatically set, which is nice because I've been browsing the forums and seeing a lot of people having problems setting the specs for these things. Anyway, are there files that I can edit which will activate the ndiswrapper and set up the WEP key before the DHCP broadcast is sent so everything is automatic? I'm using Slackware 9.1 with the 2.4.22 kernel by the way. Also, I'm going to try updating to the 2.6.6 kernel soon. Am I going to have to do all this over and is updating the kernel a good idea in the first place?
I thought I implied that I'm pretty new to this but even so I would think that there would be a certain rc file that I needed to edit (and a certain location somewhere before the DHCP search). And I don't really want my WEP key sitting in some file unprotected, plus "ndiswrapper -m" is supposed to save that setting so I don't have to put it in the rc file in the first place. But it looks like that didn't work for some reason. I'm still confused as to what to do exactly, but thanks for the help so far.
1) Something that doesn't work right now works in the later kernel
2) Your bored and have a free few hours
After saying that though going from 2.4 to 2.6 gives you an array of inprovements like pre-emptivness and the new process scheduler, that and it can be quite educational to compile your own kernel. There'd be a fair few help threads around here somewhere...i think.
Now, I haven't used slackware for a while but i know that putting those commands you specified in /etc/rc.d/rc.local (ie just type them literally at the end of that file with a newline between each) and they will be run last thing just before you get a login prompt. Unfortunatly i don't know how you can do it without having the WEP key sitting there as plaintext. I guess the easiest thing would be to simply remove the read permission for the file like so:
chmod 700 /etc/rc.d/rc.local
That command will set the permissions so that root can read, write and execute the file but no other user can (assuming the file is owned by root, which it should be. If it isn'n you can make it so by running "chown root /etc/rc.d/rc.local").
3) /etc/rc.d/rc.inet2 might not be the appropriate file to place this instruction in, given that the Book says
Quote:
The /etc/rc.d/rc.inet2 file is there for the other part of networking: setting up services and daemons and handling any interesting networking options.
.
I don't have Slack installed, so I can't check this myself, but that file does seem to be a good place to start.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.