On Fri, 17 Feb 2006 08:56:23 -0500, Thomas Kirchner wrote: > I'm having a similar problem, and I'm using ifplugd via baselayout. > (net.eth0 and net.eth1 starting by default runlevel, not ifplugd.) > > However, when I start my laptop, only net.eth0 is started even if a > wireless signal exists. Obviously, I'd like net.eth1 (wireless) > started if net.eth0 fails.
net.eth0 isn't actually failing when ifplugd detects no cable. It is
shown as inactive rather than stopped. You could try starting the
interface from /etc/conf.d/local only if eth0 is not active with
etc/init.d/net.eth0 status --quiet | echo /etc/init.d/eth1 start
You should also edit /etc/conf.d/net to shut down eth1 when eth0 detects
a cable. I have this as the preup function
preup() {
[ ${IFACE} == "eth0" ] && /etc/init.d/net.eth1 --quiet status &&
/etc/init.d/net.eth1 pause
return 0
}
--
Neil Bothwick
"Bother," said Pooh, as he pulled the alien face-hugger off.
signature.asc
Description: PGP signature

