LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 01: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, 02: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, 05: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, 04: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, 01: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



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

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

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

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
Open Source Consulting | Domain Registration