--- network.pac 2007-04-19 18:11:52.000000000 +0200 +++ network.fixed 2007-04-19 18:16:22.000000000 +0200 @@ -41,7 +41,7 @@ eval ifcfg="\$${1}" if [ "$ifcfg" = "dhcp" ]; then # remove the .pid file if it exists - rm -f /etc/dhcpc/dhcpcd-${1}.{pid,cache} >/dev/null 2>&1 + rm -f /var/run/dhcpcd-${1}.{pid,cache} >/dev/null 2>&1 /sbin/dhcpcd $DHCPCD_ARGS ${1} else /sbin/ifconfig $ifcfg @@ -57,12 +57,11 @@ fi eval ifcfg="\$${1}" if [ "$ifcfg" = "dhcp" ]; then - if [ -f /etc/dhcpc/dhcpcd-${1}.pid ]; then - kill `cat /etc/dhcpc/dhcpcd-${1}.pid` - else - # No .pid file, just bring the interface itself down - /sbin/ifconfig ${1} down + if [ -f /var/run/dhcpcd-${1}.pid ]; then + kill $(< /var/run/dhcpcd-${1}.pid) fi + # killing dhcpcd did not bring interface down + /sbin/ifconfig ${1} down else /sbin/ifconfig $ifcfg down fi