LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 02-14-2005, 02:46 PM   #1
leemac
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware Linux
Posts: 3

Rep: Reputation: 0
Commands automatic during boot


I have slackware linux

My problem is i have to type "modprobe sk98lin" everytime at root to enable my 3com gigabit card so i can surf the net. Is there a way so this command is automatically started on boot?

And how would i go about doing this for other things such as apache and no-ip updater?


Thx for you help!
 
Old 02-14-2005, 03:06 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
look in /etc/rc.d. there are several scripts in there you can modify. for your card, go to /etc/rc.d/rc.modules and add the line (go down a little bit in the file, where the other modprobe lines are):

/sbin/modprobe xxx (you'll see what I mean, it's a well commented file ).

for the other things, maybe put them in /etc/rc.d/rc.local or make a script for them like the others (in rc.c/ you will see scripts for things like alsa, cups, lprng, etc.. you could follow thier syntax and make a script to start the things you want. if you go this route, make sure when you're done creating the scripts to make them executable).
 
Old 02-14-2005, 06:41 PM   #3
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
I think that rc scripts are for running services on startup. For modules you should modify something like /etc/modules.conf or /etc/modules.d/i386 ... this depends on your distribution (sorry, I don't have slackware). Eventually you will need to run modules-update.

Hope it helps...
 
Old 02-15-2005, 05:43 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
in slack rc.modules is for loading modules at boot ( you have to see the file to know what i mean)
 
Old 02-15-2005, 02:18 PM   #5
leemac
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware Linux
Posts: 3

Original Poster
Rep: Reputation: 0
Thx for you help, I'll give it a whirl.
 
  


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
Automatic login on boot Recirqie SUSE / openSUSE 6 11-28-2004 03:51 PM
PureFTP Automatic startup during boot? mnoorman Linux - Networking 1 05-28-2004 06:47 PM
automatic sequence on boot up hwood7587 Linux - Software 2 03-17-2003 04:00 PM
Automatic login at boot RH 8.0 dleone Linux - General 2 01-08-2003 06:36 AM
automatic running from boot SpeedDingo Linux - Newbie 3 08-23-2002 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:32 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