aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-07-18 19:17:14 +0000
committerJudd Vinet <judd@archlinux.org>2005-07-18 19:17:14 +0000
commit0be8f5b2d33fc6160e2a62d33fc1f828218fa90a (patch)
treeeec5c40482ba51a4233af43ecec541ad3a7d12d8
parent00945333dc1dd08d893a6c42f395e7d3c81dad0d (diff)
downloadinitscripts-0be8f5b2d33fc6160e2a62d33fc1f828218fa90a.tar.xz
fixed netcfg to remove stale dhcpcd .pid files (#2973)
-rwxr-xr-xnetcfg2
1 files changed, 2 insertions, 0 deletions
diff --git a/netcfg b/netcfg
index 2136365..70dd342 100755
--- a/netcfg
+++ b/netcfg
@@ -95,6 +95,8 @@ start_profile()
fi
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
dhcpcd $DHCPCD_ARGS $INTERFACE
[ $? -ne 0 ] && stat_fail && return
else