Both use dhcpcd. But I never actually use both at once.Dougal wrote:Is your eth0 configured statically, or with dhcpcd?
On my desk I plug in an ethernet cable(eth0), wireless device disabled. In other room I enable wireless device, and use wifi(ath0), but no ethernet cable plugged in. That's when I had the problem because I then have 2 configured devices.
No, looks like it's part of busybox. But I now have some code that does the right thing.Dougal wrote:That's a great discovery! (Do you know why it flushes all devices?)
When an interface is configured but not plugged in. In "rc.network" just after:Dougal wrote:What I did to get past that is move the cleanUpInterface instances (run before trying to configure each interface) to the beginning, so after you've started configuring them you won't cause any damage -- maybe I just missed some places where it is run if configuring fails...
Code: Select all
echo "interface $INTERFACE does not seem to be plugged in... skipping"
In "cleanUpInterface()", replace
Code: Select all
ip route flush dev "$1"
Code: Select all
# gyro - begin - really delete only routes for interface
# ip route flush dev "$1"
if [ "$1" ] ; then
for XNET in $(iproute | grep "$1" | cut -f 1 -d " ") ; do
route del -net "$XNET"
done
fi
# gyro - end - really delete only routes for interface