3 # $NetBSD: dhclient,v 1.8 2002/03/22 04:33:58 thorpej Exp $
8 # KEYWORD: nojail nostart
16 start_cmd="dhclient_start"
17 stop_cmd="dhclient_stop"
21 # prevent unnecessicary restarts
22 # XXX: should use a pidfile
23 if [ -x /usr/bin/pgrep ]; then
24 pids=`/usr/bin/pgrep -f "dhclient: $ifn(\$| .*)"`
25 if [ -n "$pids" ]; then
30 if checkyesno background_dhclient; then
31 rc_flags="${rc_flags} -b"
34 ${dhclient_program} ${rc_flags} $ifn
39 ifconfig $ifn down # cause dhclient to die
46 if ! dhcpif $ifn; then