diff options
author | James Rayner <james@archlinux.org> | 2007-05-10 00:18:05 +0000 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2007-05-10 00:18:05 +0000 |
commit | 352dda7e7ba2c62686579e2c58b519ebb961b8be (patch) | |
tree | 89507d7238fb76b2fdcd0f0235810d0d25e196a7 /netcfg | |
parent | 3fc84b485213763335a5b820f8a4b4d6483be20d (diff) | |
download | initscripts-352dda7e7ba2c62686579e2c58b519ebb961b8be.tar.xz |
upgpkg: initscripts 0.8-8
fixing flyspray #7004 #6859, change in dhcpcd state directory.
Diffstat (limited to 'netcfg')
-rwxr-xr-x | netcfg | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -55,8 +55,8 @@ stop_profile() if [ "$IFOPTS" = "dhcp" -o "$IFOPTS" = "DHCP" ]; then # if the dhcp client received an unlimited lease then it just exits, # so check for .pid file before trying to kill it. - if [ -f /etc/dhcpc/dhcpcd-${INTERFACE}.pid ]; then - kill `cat /etc/dhcpc/dhcpcd-${INTERFACE}.pid` + if [ -f /var/run/dhcpcd-${INTERFACE}.pid ]; then + kill `cat /var/run/dhcpcd-${INTERFACE}.pid` fi fi @@ -147,7 +147,7 @@ start_profile() if [ "$IFOPTS" = "dhcp" -o "$IFOPTS" = "DHCP" ]; then # remove the .pid file if it exists - rm -f /etc/dhcpc/dhcpcd-${INTERFACE}.{pid,cache} >/dev/null 2>&1 + rm -f /var/run/dhcpcd-${INTERFACE}.{pid,cache} >/dev/null 2>&1 dhcpcd $DHCPCD_ARGS $INTERFACE [ $? -ne 0 ] && stat_fail && return else |