Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Re-ordering boot scripts?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
berkowski
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2004
Posts: 134

PostPosted: Tue Dec 28, 2004 4:52 pm    Post subject: Re-ordering boot scripts? Reply with quote

How do I switch the order of rc scripts run at boot? Right now it goes net.eth0 -> pcmcia -> ntp-client, and I'd rather pcmcia->net.eth0->ntp-client.
Back to top
View user's profile Send private message
Taily
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2004
Posts: 115

PostPosted: Tue Dec 28, 2004 5:04 pm    Post subject: Reply with quote

Wouldn't
rc-update del pcmcia/net.eth0/ntp-client
and
rc-update add pcmcia boot
rc-update add net.eth0 default
rc-update add ntp-client default
work?

Just a tought..

If you wan't all to be run at the boot runlevel this won't work.
Back to top
View user's profile Send private message
hjnenc
Veteran
Veteran


Joined: 15 Aug 2004
Posts: 1599
Location: Vienna, Austria

PostPosted: Tue Dec 28, 2004 5:05 pm    Post subject: Reply with quote

Modify the dependencies in the scripts. This is done in the 'depend' function.
What you probably need is a line
Code:
need pcmcia

in the depend of /etc/init.d/net.eth0.
Back to top
View user's profile Send private message
berkowski
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2004
Posts: 134

PostPosted: Tue Dec 28, 2004 8:44 pm    Post subject: Reply with quote

hjnenc wrote:
Modify the dependencies in the scripts. This is done in the 'depend' function.
What you probably need is a line
Code:
need pcmcia

in the depend of /etc/init.d/net.eth0.


That wasn't the problem, but checking it fixed. net.eth0 already has something to that effect with comments saying that net.eth0 and pcmcia must have the same runlevel. When checking net.eth0's runlevel I found out. . .it didn't have one. Additing it to default fixed my sequence. . .now I just need to figure out how net.eth0 was starting beforehand :?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum