1 |
Hi Andreas, |
2 |
on Tuesday, 2006-05-09 at 10:05:43, you wrote: |
3 |
> Maybe that's what the parameter in /etc/conf.d/rc is for: Did you try to |
4 |
> set RC_NET_STRICT_CHECKING="yes"? |
5 |
> |
6 |
> Sounds like what you need: |
7 |
> # yes - For this ALL network interfaces MUST be up for the 'net' |
8 |
> service to be considered up. |
9 |
|
10 |
Not a bad idea, but I don't really think this is it. It set it to "yes" |
11 |
anyway as it could become relevant if I should add another network card |
12 |
later but it was set to "no" so far which on my system should mean the |
13 |
same. "no" means " at least one net.* service besides net.lo must be |
14 |
up", and eth0 *is* the only interface besides lo so the initscript must |
15 |
consider it "up" when it returns anyway. |
16 |
|
17 |
I think this would be cleaner than my initial wait-and-hope "solution": |
18 |
postup() { |
19 |
while ! ifconfig ${IFACE} | grep >/dev/null "inet addr:" |
20 |
do |
21 |
echo "Waiting for ${IFACE} to come up" |
22 |
sleep 1 |
23 |
done |
24 |
} |
25 |
|
26 |
cheers! |
27 |
Matthias |
28 |
|
29 |
-- |
30 |
I prefer encrypted and signed messages. KeyID: FAC37665 |
31 |
Fingerprint: 8C16 3F0A A6FC DF0D 19B0 8DEF 48D9 1700 FAC3 7665 |