aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnetwork2
1 files changed, 1 insertions, 1 deletions
diff --git a/network b/network
index 2f85901..4cd45d7 100755
--- a/network
+++ b/network
@@ -61,7 +61,7 @@ ifdown()
fi
eval ifcfg="\$${1}"
if [[ $ifcfg = dhcp && -f /var/run/dhcpcd-${1}.pid ]]; then
- /bin/kill $(cat /var/run/dhcpcd-${1}.pid)
+ /sbin/dhcpcd -k ${1} >/dev/null 2>&1
fi
# Always bring the interface itself down
/sbin/ifconfig ${1} down >/dev/null 2>&1