aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnetwork4
1 files changed, 2 insertions, 2 deletions
diff --git a/network b/network
index c23c949..f66303c 100755
--- a/network
+++ b/network
@@ -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