aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2007-05-10 00:18:05 +0000
committerJames Rayner <james@archlinux.org>2007-05-10 00:18:05 +0000
commit352dda7e7ba2c62686579e2c58b519ebb961b8be (patch)
tree89507d7238fb76b2fdcd0f0235810d0d25e196a7 /network
parent3fc84b485213763335a5b820f8a4b4d6483be20d (diff)
downloadinitscripts-352dda7e7ba2c62686579e2c58b519ebb961b8be.tar.xz
upgpkg: initscripts 0.8-8
fixing flyspray #7004 #6859, change in dhcpcd state directory.
Diffstat (limited to 'network')
-rwxr-xr-xnetwork6
1 files changed, 3 insertions, 3 deletions
diff --git a/network b/network
index a25d7d8..cde25dd 100755
--- a/network
+++ b/network
@@ -41,7 +41,7 @@ ifup()
eval ifcfg="\$${1}"
if [ "$ifcfg" = "dhcp" ]; then
# remove the .pid file if it exists
- rm -f /etc/dhcpc/dhcpcd-${1}.{pid,cache} >/dev/null 2>&1
+ rm -f /var/run/dhcpcd-${1}.{pid,cache} >/dev/null 2>&1
/sbin/dhcpcd $DHCPCD_ARGS ${1}
else
/sbin/ifconfig $ifcfg
@@ -57,8 +57,8 @@ ifdown()
fi
eval ifcfg="\$${1}"
if [ "$ifcfg" = "dhcp" ]; then
- if [ -f /etc/dhcpc/dhcpcd-${1}.pid ]; then
- kill `cat /etc/dhcpc/dhcpcd-${1}.pid`
+ if [ -f /var/run/dhcpcd-${1}.pid ]; then
+ kill `cat /var/run/dhcpcd-${1}.pid`
else
# No .pid file, just bring the interface itself down
/sbin/ifconfig ${1} down