View previous topic :: View next topic |
Author |
Message |
berkowski Tux's lil' helper
Joined: 17 Mar 2004 Posts: 134
|
Posted: Tue Dec 28, 2004 4:52 pm Post subject: Re-ordering boot scripts? |
|
|
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 |
|
|
Taily Tux's lil' helper
Joined: 19 Jun 2004 Posts: 115
|
Posted: Tue Dec 28, 2004 5:04 pm Post subject: |
|
|
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 |
|
|
hjnenc Veteran
Joined: 15 Aug 2004 Posts: 1599 Location: Vienna, Austria
|
Posted: Tue Dec 28, 2004 5:05 pm Post subject: |
|
|
Modify the dependencies in the scripts. This is done in the 'depend' function.
What you probably need is a line
in the depend of /etc/init.d/net.eth0. |
|
Back to top |
|
|
berkowski Tux's lil' helper
Joined: 17 Mar 2004 Posts: 134
|
Posted: Tue Dec 28, 2004 8:44 pm Post subject: |
|
|
hjnenc wrote: | Modify the dependencies in the scripts. This is done in the 'depend' function.
What you probably need is a line
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 |
|
|
|