aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnetcfg6
-rwxr-xr-xnetwork6
2 files changed, 6 insertions, 6 deletions
diff --git a/netcfg b/netcfg
index f83d280..d350e0c 100755
--- a/netcfg
+++ b/netcfg
@@ -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
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