summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorAndrea Scarpino <bash.lnx@gmail.com>2011-03-15 11:51:39 +0100
committerThomas Bächler <thomas@archlinux.org>2011-03-16 01:11:36 +0100
commit4f9282efa03872c3e298156a21d524734e8f5ab1 (patch)
tree8fc2d27f3da510a39e383f1c77ff0c0f4dbfbf6d /network
parent8b2bfa7bd0073a3a9d389242faf16483c9ec5336 (diff)
Use dhcpcd -k instead of kill
Diffstat (limited to 'network')
-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