aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-12-05 18:59:11 +0000
committerJudd Vinet <judd@archlinux.org>2005-12-05 18:59:11 +0000
commitcfaa5552fcbe964a172138e5e6c87e54abb6ce4c (patch)
tree88a7d320a589bfa36d451cf25fb07a6a358bba78 /network
parentcec2d46513c7cd557f219fa2ede3c7a816a526dc (diff)
downloadinitscripts-cfaa5552fcbe964a172138e5e6c87e54abb6ce4c.tar.xz
dhcpcd fix in rc.d/network
Diffstat (limited to 'network')
-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