3 # $NetBSD: dhclient,v 1.8 2002/03/22 04:33:58 thorpej Exp $
4 # $FreeBSD: src/etc/rc.d/dhclient,v 1.20.2.4 2007/03/10 14:07:01 yar Exp $
9 # KEYWORD: nojail nostart
16 start_cmd
="dhclient_start"
17 stop_cmd
="dhclient_stop"
21 # prevent unnecessary restarts
22 # XXX: dhclient had better create a pidfile
23 if [ -x /bin
/pgrep
]; then
24 pids
=`/bin/pgrep -f "dhclient: $ifn(\$| .*)"`
25 if [ -n "$pids" ]; then
30 # Override for $ifn specific flags (see rc.subr for $flags setting)
31 eval specific
=\
$dhclient_flags_$ifn
32 if [ -z "$flags" -a -n "$specific" ]; then
36 ${dhclient_program} ${rc_flags} $ifn
41 ${dhclient_program} -x $ifn
47 load_rc_config network
49 if ! dhcpif
$ifn; then