* [gentoo-user] etc/conf.d/net format ?
@ 2009-02-23 13:14 Helmut Jarausch
2009-02-23 13:31 ` Mike Kazantsev
2009-02-23 18:21 ` Stroller
0 siblings, 2 replies; 5+ messages in thread
From: Helmut Jarausch @ 2009-02-23 13:14 UTC (permalink / raw
To: gentoo-user
Hi,
I have a timing problem setting up my ADSL network via bridge 2684
My script worked just fine until I moved my Gentoo system to my
new fast multicore PC.
Now it looks like the network configuration proceeds too fast.
In /etc/conf.d/net
I have
br2684ctl_nas0="-e 0 -a 8.35"
config_nas0=( null )
config_ppp0="ppp" # Runs /lib/rcscripts/net/pppd.sh
link_ppp0='nas0' # The name of the RFC2684 bridge interface
plugins_ppp0="pppoe"
and so on.
From /var/log/messages I see that the nas0 interface created
by br2684ctl is not ready yet when it's needed.
I get
/etc/init.d/net.nas0[3452]: ERROR: interface nas0 does not exist
/etc/init.d/net.nas0[3453]: Ensure that you have loaded the correct kernel module for your hardware
/etc/init.d/net.nas0[3392]: ERROR: net.nas0 failed to start
/etc/init.d/net.ppp0[3454]: ERROR: cannot start net.ppp0 as net.nas0 would not start
br2684ctl[3426]: Interface "nas0" created sucessfully
br2684ctl[3426]: Communicating over ATM 0.8.35, encapsulation: LLC
br2684ctl[3426]: Interface configured
br2684ctl[3426]: RFC 1483/2684 bridge daemon started
which shows that it is ready (only) now.
IF I start net.ppp0 afterwards again, the network comes up.
So to fix this, I'd like to do some 'sleep' after /usr/bin/br2684ctl has
executed.
Where is the syntax
br2684ctl_nas0= ...
explained and how can I insert some 'sleep'?
Many thanks for a hint,
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] etc/conf.d/net format ?
2009-02-23 13:14 [gentoo-user] etc/conf.d/net format ? Helmut Jarausch
@ 2009-02-23 13:31 ` Mike Kazantsev
2009-02-23 13:35 ` Mike Kazantsev
2009-02-23 18:21 ` Stroller
1 sibling, 1 reply; 5+ messages in thread
From: Mike Kazantsev @ 2009-02-23 13:31 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 429 bytes --]
On Mon, 23 Feb 2009 14:14:28 +0100 (CET)
Helmut Jarausch <jarausch@igpm.rwth-aachen.de> wrote:
> config_ppp0="ppp" # Runs /lib/rcscripts/net/pppd.sh
> link_ppp0='nas0' # The name of the RFC2684 bridge interface
I've never used "link_*" syntax to specify dependencies, prehaps it has
been obsoleted and not working properly?
Try:
rc_need_ppp0="nas0"
Certainly works for me.
--
Mike Kazantsev // fraggod.net
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] etc/conf.d/net format ?
2009-02-23 13:31 ` Mike Kazantsev
@ 2009-02-23 13:35 ` Mike Kazantsev
2009-02-23 16:12 ` Helmut Jarausch
0 siblings, 1 reply; 5+ messages in thread
From: Mike Kazantsev @ 2009-02-23 13:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 767 bytes --]
On Mon, 23 Feb 2009 18:31:18 +0500
Mike Kazantsev <mike_kazantsev@fraggod.net> wrote:
> On Mon, 23 Feb 2009 14:14:28 +0100 (CET)
> Helmut Jarausch <jarausch@igpm.rwth-aachen.de> wrote:
>
> > config_ppp0="ppp" # Runs /lib/rcscripts/net/pppd.sh
> > link_ppp0='nas0' # The name of the RFC2684 bridge interface
>
> I've never used "link_*" syntax to specify dependencies, prehaps it has
> been obsoleted and not working properly?
>
> Try:
> rc_need_ppp0="nas0"
>
> Certainly works for me.
>
Sorry, I was too rash to send it away without looking at my actual net
file. You should specify init.d script name in rc_need, not just some
interface name, so it should look like this:
rc_need_ppp0="net.nas0"
--
Mike Kazantsev // fraggod.net
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] etc/conf.d/net format ?
2009-02-23 13:35 ` Mike Kazantsev
@ 2009-02-23 16:12 ` Helmut Jarausch
0 siblings, 0 replies; 5+ messages in thread
From: Helmut Jarausch @ 2009-02-23 16:12 UTC (permalink / raw
To: gentoo-user
On 23 Feb, Mike Kazantsev wrote:
> On Mon, 23 Feb 2009 18:31:18 +0500
> Mike Kazantsev <mike_kazantsev@fraggod.net> wrote:
>
>> On Mon, 23 Feb 2009 14:14:28 +0100 (CET)
>> Helmut Jarausch <jarausch@igpm.rwth-aachen.de> wrote:
>>
>> > config_ppp0="ppp" # Runs /lib/rcscripts/net/pppd.sh
>> > link_ppp0='nas0' # The name of the RFC2684 bridge interface
>>
>> I've never used "link_*" syntax to specify dependencies, prehaps it has
>> been obsoleted and not working properly?
>>
>> Try:
>> rc_need_ppp0="nas0"
>>
>> Certainly works for me.
>>
>
> Sorry, I was too rash to send it away without looking at my actual net
> file. You should specify init.d script name in rc_need, not just some
> interface name, so it should look like this:
>
> rc_need_ppp0="net.nas0"
>
Thanks but removing the link_* didn't help. Furthermore it's suggested
in the current net.example file
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] etc/conf.d/net format ?
2009-02-23 13:14 [gentoo-user] etc/conf.d/net format ? Helmut Jarausch
2009-02-23 13:31 ` Mike Kazantsev
@ 2009-02-23 18:21 ` Stroller
1 sibling, 0 replies; 5+ messages in thread
From: Stroller @ 2009-02-23 18:21 UTC (permalink / raw
To: gentoo-user
On 23 Feb 2009, at 13:14, Helmut Jarausch wrote:
> ...
> So to fix this, I'd like to do some 'sleep' after /usr/bin/br2684ctl
> has
> executed.
>
> Where is the syntax
> br2684ctl_nas0= ...
>
> explained and how can I insert some 'sleep'?
In my /etc/conf.d/net I have:
preup() {
if [[ ${IFACE} == "br0" ]] ;
then sleep 30 ;
fi
return 0
}
HTH,
Stroller.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-02-23 18:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-23 13:14 [gentoo-user] etc/conf.d/net format ? Helmut Jarausch
2009-02-23 13:31 ` Mike Kazantsev
2009-02-23 13:35 ` Mike Kazantsev
2009-02-23 16:12 ` Helmut Jarausch
2009-02-23 18:21 ` Stroller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox