What do I have to edit to make a module start on boot?
Here's a :newbie: 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:
iwconfig wlan0 key s:XXXXX
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?
put it in one of the rc scripts...
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.
I would only recommend upgrading the kenel if:
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").
You should be able to create a file /etc/rc.d/rc.modules
then add the modprobe commands there. The default rc scripts will run the file if it's there. Be sure to chmod it to set the x bit.
What I would do is put ndiswrapper -m in one of the following locations:
1) The session manager for my desktop environment;
2) The initialization file for my display manager;
or I would read The Slackware Linux Essentials online book and see if
3) /etc/rc.d/rc.inet2 might not be the appropriate file to place this instruction in, given that the Book says
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.
Hope this helps.
|All times are GMT -5. The time now is 06:45 PM.|