I have a laptop with a cardbus networkcard. When putting in the card, the hotplug agent kicks in and executes /etc/init.d/net.eth0 start. so far so good. When removing the card the hotplug agent executes /etc/init.d/net.eh0 stop but the script fails because dhcpcd gives a signal 1 -> no such device. Thats good, because the networkcard is gone, but here comes the problem, net.eth0 is still in the 'started' state so if i put back the card 'net.eth0 start' gives me a warning that it is still started. Reproducible: Always Steps to Reproduce: 1. put in cardbus networkcard configured for dhcpcd and it works 2. remove it 3. put it in again and the interfce goes up, but net.eth0 fails to start Actual Results: I got stuck with a net.et0 script in the started state and a eth0 interface with no ip. Expected Results: 3. put it in again and the interfce goes up and a net.eth0 starts This happends when removing the network card: Feb 12 21:41:50 [kernel] cs: cb_free(bus 8) Feb 12 21:41:50 [/etc/hotplug/net.agent] invoke /etc/init.d/net.eth0 stop Feb 12 21:41:50 [/etc/hotplug/pci.agent] PCI remove event not supported Feb 12 21:41:50 [dhcpcd] dhcpRelease: sendto: No such device Feb 12 21:41:50 [dhcpcd] arpRelease: sendto: No such device Feb 12 21:41:51 [dhcpcd] terminating on signal 1 Feb 12 21:41:51 [dhcpcd] dhcpStop: ioctl SIOCSIFADDR: No such device Feb 12 21:41:51 [dhcpcd] dhcpStop: ioctl SIOCSIFFLAGS: No such device As such, the net.eth0 fails to stop and is still in a started state. The script sould be modified to check for a running "dhcpcd -i eth0" process before trying to stop it.
Is this still the case? I use baselayout-1.8.6.2 and I have no such problems.
nope, sorry problem still exists with baselayout 1.8.6.4-r1. The warning I see in the log is: "DATETIME [rc-scripts] WARNING: "net.eth0" has already been started.". Description and reproduction stated above is still valid with this ~x86 baselayout.
This bug has been inactive for a long time. Does the problem still exist? Please try the latest version and reopen this bug if the problem persists.