LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 05-20-2004, 09:40 PM   #1
WopMaster8
LQ Newbie
 
Registered: May 2004
Distribution: Slackware 10.1
Posts: 7

Rep: Reputation: 0
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?

Thanks everyone.
 
Old 05-21-2004, 01:12 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
put it in one of the rc scripts...
 
Old 05-21-2004, 02:07 AM   #3
WopMaster8
LQ Newbie
 
Registered: May 2004
Distribution: Slackware 10.1
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 05-21-2004, 07:31 AM   #4
Biogenesis
Member
 
Registered: Apr 2004
Distribution: Debian unstable
Posts: 38

Rep: Reputation: 15
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").
 
Old 05-21-2004, 09:44 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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.
 
Old 05-23-2004, 10:25 AM   #6
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
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
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.

Hope this helps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make a module load on boot WolfCub Debian 8 05-13-2005 12:46 PM
how to make something start at boot? Lleb_KCir Linux - General 5 08-20-2004 09:45 PM
How to make programs start on boot... AudioMechanic Linux - Software 4 04-16-2004 06:52 AM
How can I make a module (such as agpgart) load at boot? JsTNXD Red Hat 1 01-29-2004 07:52 PM
How to make a program start up on boot? daverino Linux - Newbie 1 02-22-2002 01:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration