diff options
author | Judd Vinet <judd@archlinux.org> | 2003-01-06 23:23:41 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2003-01-06 23:23:41 +0000 |
commit | 6c4a6fc1938f12ee85b4f593de64a8776e5c1ba0 (patch) | |
tree | fa82f03da5fdf450bac7d33e93b8ee4a9b1d3c1f /network | |
parent | 19c04471ce76a3f803fdf47b964880266b529070 (diff) |
kill dhcpcd pid files before running the client daemon
Diffstat (limited to 'network')
-rwxr-xr-x | network | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |