Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Peripherals / Hardware > add modules to kernel

Forgot Password?
 Peripherals / Hardware   Is your hardware supported? Having trouble getting some hardware working? Post here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 04-05-2005   #1 (permalink)
hal
Just Joined!
 
Join Date: Mar 2005
Posts: 69
add modules to kernel

hey
i' running mdk 10.1c on a toshiba laptop. i use an Asus w100g pcmcia to connect to wireless networks. for it to work, i "ndiswrapped" the win2k driver. it works just fine! what annoys me is the fact that everytime i boot the computer i need to add ndiswrapper to the kernel, by typing:
Quote:
$ su
$ **************
$ modprobe ndiswrapper
How can this be done automaticaly at boot time? any sugestions?
hal is offline  



Reply With Quote
Old 04-05-2005   #2 (permalink)
Linux Guru
 
dylunio's Avatar
 
Join Date: Aug 2004
Location: Cymru
Posts: 4,157
add it (the above commadn) to rc.3 in /etc/rc.d (it could also be /etc/init.d/rd.3) and then it should run when you boot.

dylunio
__________________
Registered Linux User #371543!
Get force-get May The Source Be With You
/dev/null
/dev/null2
dylunio is offline   Reply With Quote
Old 04-05-2005   #3 (permalink)
Linux Guru
 
Flatline's Avatar
 
Join Date: Feb 2005
Posts: 2,204
Or rc.5 if you're booting into runlevel 5 (graphical boot). Dylunio, you beat me to it by about 3 seconds
__________________
There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

- Jeremy S. Anderson
Flatline is offline   Reply With Quote
Old 04-05-2005   #4 (permalink)
Linux Guru
 
dylunio's Avatar
 
Join Date: Aug 2004
Location: Cymru
Posts: 4,157
Quote:
Originally Posted by Flatline
Or rc.5 if you're booting into runlevel 5 (graphical boot). Dylunio, you beat me to it by about 3 seconds
I wouldn't advise rd.5, since it will only run if you reach runlevel 5, while rd.3 will run at runnlevel 3, and runlevel 5, so if you have a X problem at boot modprobe will be running.
__________________
Registered Linux User #371543!
Get force-get May The Source Be With You
/dev/null
/dev/null2
dylunio is offline   Reply With Quote
Old 04-05-2005   #5 (permalink)
hal
Just Joined!
 
Join Date: Mar 2005
Posts: 69
damn you're fast!
but..is it rc.3 or rd.3 ? i can't find neigher in those directories..
hal is offline   Reply With Quote
Old 04-05-2005   #6 (permalink)
Linux Guru
 
Flatline's Avatar
 
Join Date: Feb 2005
Posts: 2,204
/etc/rc3.d
__________________
There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

- Jeremy S. Anderson
Flatline is offline   Reply With Quote
Old 04-05-2005   #7 (permalink)
Linux Guru
 
dylunio's Avatar
 
Join Date: Aug 2004
Location: Cymru
Posts: 4,157
hal, it is rc.3 (sorry for the typo) it could be in /etc/init.d/rc.3 /etc/rc.d/rc.3 or /etc/rc.3

dylunio
__________________
Registered Linux User #371543!
Get force-get May The Source Be With You
/dev/null
/dev/null2
dylunio is offline   Reply With Quote
Old 04-05-2005   #8 (permalink)
Linux Guru
 
sdousley's Avatar
 
Join Date: Feb 2004
Posts: 1,767
or add ndiswrapper to the /etc/modules.autoload.d/kernel-<version>
__________________
"I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327
sdousley is offline   Reply With Quote
Old 04-05-2005   #9 (permalink)
hal
Just Joined!
 
Join Date: Mar 2005
Posts: 69
i really dont have such a file. i only find rc3.d (dir) under that dir's and when i ran find it didnt return anything.
thx anyway
hal is offline   Reply With Quote
Old 04-05-2005   #10 (permalink)
hal
Just Joined!
 
Join Date: Mar 2005
Posts: 69
ok. i just found the following file while searching for rc.3, add it, and it does work (just rebooted:
Quote:
# /etc/modprobe.preload: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a `#', and everything on the line after them are ignored.
# this file is for module-init-tools (kernel 2.5 and above) ONLY
# for old kernel use /etc/modules


evdev
intel-agp
ndiswrapper
thank you guys
hal is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:13 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1