You are not logged in.
Pages: 1
When stopping my network, I get the following message:
cat: /etc/dhcpc/dhcpcd-eth0.pid: No such file or directory
Instantly following that, I seem to be given the usage details for the kill command, and then I receive [fail].
Any ideas why I get this?
Kirk
Offline
I think this has to do with the fact that 'consumer' router's (i.e. Linksys/SMC/D-Link/etc.) sometimes hand-out 'infinite IP leases' which don't leave a 'pid' sitting around to kill(!?).
I need to re-open/re-write a bug-report about this.
-- Linux! Isn't it time?
Offline
*
**
*** FIXED !
Judd has crafted a fix. In the meantime, here's the code to replace the ifdown() in rc.shutdown:
ifdown()
{
if [ "$1" = "" ]; then
echo "usage: $0 ifdown <interface_name>"
return 1
fi
varname="$${1}"
eval new_ifline=$varname
if [ "$new_ifline" = "dhcp" ]; then
if [ -f /etc/dhcpc/dhcpcd-${1}.pid ]; then
/bin/kill `cat /etc/dhcpc/dhcpcd-${1}.pid`
else
# No .pid file, just bring the interface itself down
/sbin/ifconfig $1 down
fi
else
/sbin/ifconfig $new_ifline down
fi
return $?
}
-- Linux! Isn't it time?
Offline
Pages: 1