Hi Andreas,
on Tuesday, 2006-05-09 at 10:05:43, you wrote:
> Maybe that's what the parameter in /etc/conf.d/rc is for: Did you try to
> set RC_NET_STRICT_CHECKING="yes"?
> 
> Sounds like what you need:
> #  yes   - For this ALL network interfaces MUST be up for the 'net'
> service to be considered up.

Not a bad idea, but I don't really think this is it. It set it to "yes"
anyway as it could become relevant if I should add another network card
later but it was set to "no" so far which on my system should mean the
same. "no" means " at least one net.* service besides net.lo must be
up", and eth0 *is* the only interface besides lo so the initscript must
consider it "up" when it returns anyway.

I think this would be cleaner than my initial wait-and-hope "solution":
postup() {
  while ! ifconfig ${IFACE} | grep >/dev/null "inet addr:"
  do
    echo "Waiting for ${IFACE} to come up"
    sleep 1
  done
}

cheers!
        Matthias

-- 
I prefer encrypted and signed messages. KeyID: FAC37665
Fingerprint: 8C16 3F0A A6FC DF0D 19B0  8DEF 48D9 1700 FAC3 7665

Attachment: pgpp5il7kF2ZD.pgp
Description: PGP signature

Reply via email to