LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-17-2003, 09:22 AM   #1
Mighty_Viking
LQ Newbie
 
Registered: Feb 2003
Posts: 21

Rep: Reputation: 15
rc.boot problem


Hi

I'm trying to get internet to work at startup without having to do modprobe ifconfig and route.
But my problem is that i don't know where to add the command lines, so what should i do?


Thanks

Mikkel
 
Old 05-17-2003, 11:51 PM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Re: rc.boot problem

Quote:
Originally posted by Mighty_Viking
Hi

I'm trying to get internet to work at startup without having to do modprobe ifconfig and route.
But my problem is that i don't know where to add the command lines, so what should i do?


Thanks

Mikkel
First what is your distribution
Next ifconfig and route are not modules but commands.
 
Old 05-18-2003, 05:48 AM   #3
Mighty_Viking
LQ Newbie
 
Registered: Feb 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Hi

I know that there are not modules!

I'm using Debian woody

What i'm trying to do is to get my network and internet to work at startup, right now i always have to type these commands:

modprobe 3c59x

ifconfig eth0 192.168.0.6 netmask 255.255.255.0 up

route add default gw 192.168.0.1 dev eth0


And i would like to put them in the boot dir , but i don't know how!?

Mikkel
 
Old 05-18-2003, 06:22 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
cat >> /etc/rc.d/rc.local

modprobe 3c59x

ifconfig eth0 192.168.0.6 netmask 255.255.255.0 up

route add default gw 192.168.0.1 dev eth0

control-d
 
Old 05-19-2003, 04:05 AM   #5
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
First I would like to add here that there is no rc.local in debian
The steps to do after you do as whansard pointed out is
go to /etc/rc.d (if you don't have rc.d do mkdir /etc/rc.d,you have to do that before the steps pointed out by whansard)
and do
chmod -R 774 /etc/rc.d/rc.local
now find out your default runlevel(if you don't know it already)
cat /etc/inittab |grep initdefault
the number after id is your runlevel say X
now go to the folder representing your runlevel ie rcX.d
do
ln -s /etc/rc.d/rc.local S99rclocal
and hope that it works
do give a feedback
 
Old 05-20-2003, 09:40 AM   #6
Mighty_Viking
LQ Newbie
 
Registered: Feb 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Hi

It works
does the last command : " ln -s /etc/rc.d/rc.local S99rclocal " add my new folder and file to the runlevel boot list?
And what does "S99rclocal " means ?

thanks.
 
Old 05-20-2003, 03:18 PM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
in sysV style init, you have directories for run levels.
each directory has symlinks to scripts which start or
stop depending on the runlevel. The S means start,
the 99 is for the order in which to start, the rclocal
is just for identification. so the the S99 will get started
after S1-S98, in that runlevel. the ones for K are kill.
 
Old 05-20-2003, 03:49 PM   #8
Mighty_Viking
LQ Newbie
 
Registered: Feb 2003
Posts: 21

Original Poster
Rep: Reputation: 15
and what would happen if there already is a 99, will the system auto. reorder the list?
 
Old 05-20-2003, 03:53 PM   #9
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
i think they would be alphabetical, if they are the same
number.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help fixing boot problem on Ubuntu/WinXp dual-boot Ay-Karamba! Linux - General 5 09-06-2005 09:20 PM
solaris boot problem boot error loading interpreter(misc/krtld) Johncy_j Solaris / OpenSolaris 5 08-18-2005 01:47 AM
Boot problem w/FC2 - DISK BOOT FAILURE maugou Fedora 2 06-30-2004 06:37 PM
problem with Installing red hat linux dual boot(/boot < for 1024 cylinders ) praveenb Linux - Newbie 2 02-13-2004 08:49 PM
Problem with Mandrake 9 boot /Debian boot on 1 PC cmisip Linux - Distributions 4 11-04-2002 05:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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