dhcpcd being started twice on boot
Recently I upgraded to slackware-current using swaret. Now, whenever I boot up, there are two instances of dhcpcd trying to configure my eth0. If I want to be able to access the internet, I have to killall dhcpcd and re-run rc.inet1. I have looked in the /etc/rc.d directory and I can't find anything that would cause this. Is there something I'm overlooking?
|
did you look at /etc/rc.d/rc.S speicifly?
|
Yep, and rc.inet1. The only dhcpcd statements I can find in /etc/rc.d are in rc.0 and rc.6 which kill it, and rc.inet1 that starts it (once) for eth0.
|
Did you cat both of them and check them with grep?
|
Code:
[pete@l0s2 rc.d]$ grep dhcp * |
.
well i have the same problem, and no idea how to solve it, cat /var/log/messages gives this:
Code:
Nov 12 22:16:33 maciek kernel: ACPI: PCI interrupt 0000:00:06.0[A] -> GSI 10 (level, low) -> IRQ 10 |
On my system I get
/etc/rc.d/rc.inet1: eth0 is already up, skipping in /var/log/messages, but I have never really thought about it as it didn't cause a problem. I found that there is a file /etc/hotplug/net.agent to be honest I dont know really what this file is about, but it contains the section # Slackware Linux: if [ -x /etc/rc.d/rc.inet1 ]; then # Interface already up? If so, skip. if ! /sbin/ifconfig | grep "^${INTERFACE} " 1> /dev/null ; then debug_mesg run rc.inet1 exec /etc/rc.d/rc.inet1 fi could this be where it is getting called from? you could try making net.agent non executable and testing with a reboot -I haven't researched this very thoroughly, but it wouldn't hurt to try- tobyl |
.
ok the simplest solution will be to move the section
Code:
if [ -x /etc/rc.d/rc.inet1 ]; then as hotplug loads all kernel modules, and then you may comment out section in net.agent, that tobyl mentioned Code:
# Slackware Linux: |
All times are GMT -5. The time now is 01:57 AM. |