 |
12-01-2003, 08:16 PM
|
#1 (permalink)
| | Registered User
Join Date: Feb 2002 Location: Mexicali, Mexico
Posts: 1,086
| » 
Loading modules at boot up?
What configuration file i need to change to load modules when i boot to linux?
|
| |
12-02-2003, 02:45 AM
|
#2 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Sunny, smogy Southern California
Posts: 5,350
|
you can add or uncomment them in /etc/modules.conf or you can add them with modprobe in /etc/init.d/boot.local -or- /etc/rc.d/rc.local depending on the distro.
|
| |
12-02-2003, 08:05 AM
|
#3 (permalink)
| | Registered User
Join Date: Feb 2002 Location: Mexicali, Mexico
Posts: 1,086
|
on MDK 9.2, I added on modules.conf
eth0 alias xxxx
do i need to add insmod path/xxxx
after that line?
__________________
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots. So far, the universe is winning."
Richard Cook
|
| |
12-02-2003, 08:59 AM
|
#4 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Sunny, smogy Southern California
Posts: 5,350
|
What module are you trying to load? If you have installed the module properly you probably don't need to add a path to it in modules.conf
What happens if you use modprobe to load the module?
|
| |
12-02-2003, 09:06 AM
|
#5 (permalink)
| | Registered User
Join Date: Feb 2002 Location: Mexicali, Mexico
Posts: 1,086
|
Ok.... here it goes...
I have a Wireless G card that riight now they are not modules that support it, I got a ndiswrapper to use the windows drivers (ughh), to let the card work....
I downloaded the source and compiled it correctly to a module called ndiswrapper.o
modprobe is satisfactory, i made a small script to make all the process that consist in the following
insmod path/ndiswrapper.0
./loaddriver eth0 xxxx xxxx windrv.sys windrv.inf
dhcpd
where xxxx xxxx are the address of the pci card.
with this i get a fully functional card... but i need to make this every time i boot not a problem but could be at boot time...
|
| |
12-02-2003, 02:19 PM
|
#6 (permalink)
| | Registered User
Join Date: Oct 2001 Location: ~/
Posts: 2,567
|
Why not just make this a script, and then load it via rc.local or boot.local?
|
| |
12-02-2003, 02:55 PM
|
#7 (permalink)
| | Registered User
Join Date: Feb 2002 Location: Mexicali, Mexico
Posts: 1,086
|
ok that sound good... do i add the script to rc.local or boot local?
or i need to place the script on a special folder?
__________________
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots. So far, the universe is winning."
Richard Cook
|
| |
12-02-2003, 04:53 PM
|
#8 (permalink)
| | Registered User
Join Date: Oct 2001 Location: ~/
Posts: 2,567
|
place the script anywhere, i would put it in /usr/local/bin more than likely, and then just execute the script in rc.local
|
| |
12-02-2003, 05:36 PM
|
#9 (permalink)
| | Registered User
Join Date: Feb 2002 Location: Mexicali, Mexico
Posts: 1,086
|
ok got it, will give a try tonight....
__________________
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots. So far, the universe is winning."
Richard Cook
|
| |
12-03-2003, 08:48 AM
|
#10 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Sunny, smogy Southern California
Posts: 5,350
| Quote: |
or you can add them with modprobe in /etc/init.d/boot.local -or- /etc/rc.d/rc.local depending on the distro.
| |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions  | | | | | Recent Discussions  | | | | | |