LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-25-2004, 07:50 AM   #1
the who
Member
 
Registered: Feb 2004
Location: FRG, EU
Distribution: Slackware current
Posts: 51

Rep: Reputation: 15
How to deactivate a Kernel module at boot time?


So I know how to load the APM kernel module at boot time, but how can I prevent a kernel module from loading at boot time?

I need to deactivate the "scanner" module in order to be able to use my scanner (it's using libusb). "modprobe -r scanner" works fine, but it would of course be a lot more convenient if it wouldn't even load at boot time. What line in which file do I need to (un)comment? Or can I just put the command "modprobe -r scanner" in my /etc/rc.d/rc.local?

I usually find answers to most of my questions via a forum or google search, but am somehow not able to find an answer to this one.. :-/

Last edited by the who; 04-25-2004 at 07:51 AM.
 
Old 04-25-2004, 08:45 AM   #2
profjohn
Member
 
Registered: Mar 2004
Location: Jinhua, People's Republic of China
Distribution: MDK, RH, KNPX
Posts: 161

Rep: Reputation: 30
Check the config files in /boot. One of those is likely to be your grail...

config-(kernel)
 
Old 04-25-2004, 09:00 AM   #3
the who
Member
 
Registered: Feb 2004
Location: FRG, EU
Distribution: Slackware current
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by profjohn
Check the config files in /boot. One of those is likely to be your grail...

config-(kernel)
The only config file in /boot is config-ide-2.4.22 ("config" is a symlink to this file)
The only line with "scanner" in it is:
Quote:
# USB Imaging devices
#
CONFIG_USB_DC2XX=m
CONFIG_USB_MDC800=m
CONFIG_USB_SCANNER=m
CONFIG_USB_MICROTEK=m
CONFIG_USB_HPUSBSCSI=m
Is this what you meant? Do I need to comment the scanner line or replace the "m" with something else?

Thanks.
 
Old 04-25-2004, 09:57 AM   #4
eelsnaudras
Newbie
 
Registered: Apr 2004
Location: Manchester, England
Distribution: slack current, debian testing
Posts: 9

Rep: Reputation: 0
Have a look at

/etc/hotplug/blacklist

Might be what you're after.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install module on boot time? Slamtilt Linux - Laptop and Netbook 2 03-18-2005 11:52 AM
how to load a module at boot time appas Linux - Software 7 09-29-2004 06:04 AM
Loading a Module at boot time Nappa Fedora 8 04-14-2004 07:12 PM
how to load a module at boot time trutnev Linux - Newbie 1 03-14-2004 12:54 PM
Load module(s) at boot time LordChaos Linux - General 2 01-18-2003 03:28 PM


All times are GMT -5. The time now is 10:58 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration