diff options
Diffstat (limited to 'network')
-rwxr-xr-x | network | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -42,7 +42,7 @@ ifup() if [ "$ifcfg" = "dhcp" ]; then # remove the .pid file if it exists rm -f /etc/dhcpc/dhcpcd-${1}.{pid,cache} >/dev/null 2>&1 - /usr/sbin/dhcpcd $DHCPCD_ARGS ${1} + /sbin/dhcpcd $DHCPCD_ARGS ${1} else /sbin/ifconfig $ifcfg fi @@ -58,7 +58,7 @@ ifdown() eval ifcfg="\$${1}" if [ "$ifcfg" = "dhcp" ]; then if [ -f /etc/dhcpc/dhcpcd-${1}.pid ]; then - /bin/kill `cat /etc/dhcpc/dhcpcd-${1}.pid` + /sbin/dhcpcd -k else # No .pid file, just bring the interface itself down /sbin/ifconfig ${1} down |