aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2003-01-06 23:23:41 +0000
committerJudd Vinet <judd@archlinux.org>2003-01-06 23:23:41 +0000
commit6c4a6fc1938f12ee85b4f593de64a8776e5c1ba0 (patch)
treefa82f03da5fdf450bac7d33e93b8ee4a9b1d3c1f /network
parent19c04471ce76a3f803fdf47b964880266b529070 (diff)
downloadinitscripts-6c4a6fc1938f12ee85b4f593de64a8776e5c1ba0.tar.xz
kill dhcpcd pid files before running the client daemon
Diffstat (limited to 'network')
-rwxr-xr-xnetwork4
1 files changed, 3 insertions, 1 deletions
diff --git a/network b/network
index c650fbc..8319471 100755
--- a/network
+++ b/network
@@ -9,10 +9,12 @@ case "$1" in
ck_daemon network || exit
stat_busy "Starting Network"
for ifline in ${INTERFACES[@]}; do
- if echo $ifline | grep '^[^\!]' 2>&1 > /dev/null; then
+ if echo $ifline | grep '^[^\!]' >/dev/null 2>&1; then
varname="\$${ifline}"
eval new_ifline=$varname
if [ "$new_ifline" = "dhcp" ]; then
+ # remove the .pid file if it exists
+ rm -f /etc/dhcpc/dhcpcd-${ifline}.pid >/dev/null 2>&1
/usr/sbin/dhcpcd $ifline || stat_die
else
/sbin/ifconfig $new_ifline || stat_die