FS#2632 - Problem with dhcp on restarting
Attached to Project:
Arch Linux
Opened by Mason Mullins (MasonM) - Thursday, 21 April 2005, 21:39 GMT
Opened by Mason Mullins (MasonM) - Thursday, 21 April 2005, 21:39 GMT
|
Details
I have found a bug in the /etc/rc.d/networl script which
causes a problem with dhcpcd assigning an IP address after
shutting down/restarting the computer.
In the network script, in the ifdown() section, it read: if [ -f /etc/dhcpc/dhcpcd-${1}.pid ]; then /bin/kill `cat /etc/dhcpc/dhcpcd-${1}.pid` which basically just deletes the .pid file without dhcpcd actually releasing anything. Bad way to do it. I changed it to read: if [ -f /etc/dhcpc/dhcpcd-${1}.pid ]; then /sbin/dhcpcd -k which causes dhcpcd to release and then delete the .pid and .cache files. Problem solved. |
This task depends upon
Closed by Judd Vinet (judd)
Monday, 02 May 2005, 02:56 GMT
Reason for closing: Works for me
Additional comments about closing: Agreed. The two should effectively be the same.
Monday, 02 May 2005, 02:56 GMT
Reason for closing: Works for me
Additional comments about closing: Agreed. The two should effectively be the same.
Comment by Jan de Groot (JGC) -
Monday, 25 April 2005, 09:43 GMT
Shouldn't be a problem, since dhcpcd get's a kill signal on the
PID it wrote to the .pid file. dhcpcd handles this kill signal in
the same way it does on a dhcpcd -k command.