NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/38739: dhcpcd needs an a file in /etc/rc.d



>Number:         38739
>Category:       bin
>Synopsis:       dhcpcd needs a startup script in /etc/rc.d/
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sun May 25 02:35:00 +0000 2008
>Originator:     H. Todd Fujinaka
>Release:        NetBSD 4.99.63
>Organization:
None
>Environment:
        
        
System: NetBSD amttest.i8u.org 4.99.63 NetBSD 4.99.63 (AMTTEST) #168: Sat May 
24 17:59:05 PDT 2008 
htodd%amttest.i8u.org@localhost:/var/obj/sys/arch/i386/compile.i386/AMTTEST i386
Architecture: i386
Machine: i386
>Description:
The new dhcpcd needs support in /etc/rc.d/ and also a mention in 
/etc/defaults/rc.conf.
        
>How-To-Repeat:
        
>Fix:
        
A copy of /etc/rc.d/dhclient with some minor editing seems to work. Sort of 
like this:

#!/bin/sh
#

# PROVIDE: dhcpcd
# REQUIRE: network mountcritlocal
# BEFORE:  NETWORKING
#
#       Note that there no syslog logging of dhcpcd messages at boot because
#       dhcpcd needs to start before services that syslog depends upon do.
#

$_rc_subr_loaded . /etc/rc.subr

name="dhcpcd"
rcvar=$name
command="/sbin/${name}"
pidfile="/var/run/${name}.pid"

load_rc_config $name
run_rc_command "$1"

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index