LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-22-2005, 02:46 PM   #1
harisund
Member
 
Registered: Sep 2005
Location: Baton Rouge
Distribution: Ubuntu 5.10
Posts: 74

Rep: Reputation: 15
Question Disabling modules at startup with SYS V Linux


Hello everyone

I am using Mepis, which is a Debian derivate and therefore uses Sys V style init scripts.

What I would like to know is how to disable / enable certain modules at startup time. One annoying module I would love to kill is the floppy module. Also, I would prefer my eth0 to be disabled (during boot time it always tries to aquire DHCP through eth0) and my wlan0 to be enabled (I have written a shell script which connects to the school network when I am at school and house network when I am there. I want this script to be run at boot time). The wlan0 ndiswrapper module gets loaded I think, since I said modprobe ndiswrapper. But I still have to run my shell script for it to acquire the DHCP address from the school / home routers. Oh, and the CUPS printer module is another annoying thing. Seriously.

I read in the Debian Reference about /etc/default, /etc/init.d and /etc/rcS.d and /etc/rc?.d (?-> runlevels). I also learnt that shell scripts with S are started and those with K are killed.

But before I go tinkering with those, I would be really grateful if someone could tell me what they are exactly, and how I can start customizing those?

Thank you very much

Regards
Hari

Last edited by harisund; 09-22-2005 at 02:57 PM.
 
Old 09-22-2005, 06:33 PM   #2
JamieBrown
Member
 
Registered: Jan 2005
Location: Great Ayton, North Yorkshire, UK
Distribution: Gentoo, Mandriva, RHES, Debian
Posts: 61

Rep: Reputation: 15
Hi harisund!

Although I'm no Debian person (using Mandriva at the moment) I believe the command "chkconfig" works across distros. Log in as root, and type:

chkconfig --list

That will give you a list of all of the services you've got set up in your init.d section. Then you can just say:

chkconfig [servicename] off

to turn a service off. Conversely you can use "on" to turn it back on. But I'd be careful - some are very necessary of course!

Alternatively though - I'd investigate looking at your network setup to change the way your network devices work. In your network settings there'll be an option with each interface that allows you to specify whether or not you want to start it on boot.

Cheers,

Jamie.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel : how to add sys call through modules only? pinkeshzaveri Programming 1 09-14-2005 04:17 AM
Is a Linux sys w/o any passwd's as secure as a microsoft windows sys w/no passwd? t3gah Linux - Security 4 04-22-2005 09:01 PM
Disabling Startup Services loadedmind Slackware 7 11-07-2003 10:36 PM
disabling kernel modules Abe_the_Man Linux - Newbie 1 09-03-2003 10:03 PM
run progs at startup and sys monitoring question, runlevel restless Linux - General 3 02-10-2003 08:02 PM


All times are GMT -5. The time now is 06:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration