Add an rc.d script for dhcpcd(8)
This commit is contained in:
parent
b99ed0004a
commit
6bdecd9c27
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: mi,v 1.208 2009/04/21 16:08:57 joerg Exp $
|
# $NetBSD: mi,v 1.209 2009/04/28 23:31:52 roy Exp $
|
||||||
#
|
#
|
||||||
# Note: end-user configuration files that are moved to another location
|
# Note: end-user configuration files that are moved to another location
|
||||||
# should not be marked "obsolete"; they should just be removed from
|
# should not be marked "obsolete"; they should just be removed from
|
||||||
@ -181,6 +181,7 @@
|
|||||||
./etc/rc.d/cleartmp etc-sys-rc
|
./etc/rc.d/cleartmp etc-sys-rc
|
||||||
./etc/rc.d/cron etc-cron-rc
|
./etc/rc.d/cron etc-cron-rc
|
||||||
./etc/rc.d/dhclient etc-dhclient-rc
|
./etc/rc.d/dhclient etc-dhclient-rc
|
||||||
|
./etc/rc.d/dhcpcd etc-dhcpcd-rc
|
||||||
./etc/rc.d/dhcpd etc-dhcpd-rc
|
./etc/rc.d/dhcpd etc-dhcpd-rc
|
||||||
./etc/rc.d/dhcrelay etc-dhcpd-rc
|
./etc/rc.d/dhcrelay etc-dhcpd-rc
|
||||||
./etc/rc.d/dmesg etc-sys-rc
|
./etc/rc.d/dmesg etc-sys-rc
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: rc.conf,v 1.102 2009/04/10 16:18:04 joerg Exp $
|
# $NetBSD: rc.conf,v 1.103 2009/04/28 23:30:34 roy Exp $
|
||||||
#
|
#
|
||||||
# /etc/defaults/rc.conf --
|
# /etc/defaults/rc.conf --
|
||||||
# default configuration of /etc/rc.conf
|
# default configuration of /etc/rc.conf
|
||||||
@ -159,6 +159,7 @@ racoon=NO # IKE daemon
|
|||||||
auto_ifconfig=YES # config all avail. interfaces
|
auto_ifconfig=YES # config all avail. interfaces
|
||||||
net_interfaces="" # used only if above is NO
|
net_interfaces="" # used only if above is NO
|
||||||
flushroutes=YES # flush routes in netstart
|
flushroutes=YES # flush routes in netstart
|
||||||
|
dhcpcd=NO
|
||||||
dhcpcd_flags="-q" # For ifconfig_XXX=dhcp.
|
dhcpcd_flags="-q" # For ifconfig_XXX=dhcp.
|
||||||
dhclient=NO # behave as a DHCP client
|
dhclient=NO # behave as a DHCP client
|
||||||
dhclient_flags="" # blank: config all interfaces
|
dhclient_flags="" # blank: config all interfaces
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: Makefile,v 1.77 2009/04/21 16:08:57 joerg Exp $
|
# $NetBSD: Makefile,v 1.78 2009/04/28 23:30:34 roy Exp $
|
||||||
|
|
||||||
.include <bsd.own.mk>
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ CONFIGFILES=\
|
|||||||
accounting altqd amd apmd \
|
accounting altqd amd apmd \
|
||||||
bootconf.sh bootparams btattach btconfig btdevctl bthcid \
|
bootconf.sh bootparams btattach btconfig btdevctl bthcid \
|
||||||
ccd cgd cleartmp cron \
|
ccd cgd cleartmp cron \
|
||||||
dhclient dhcpd dhcrelay dmesg downinterfaces envsys \
|
dhclient dhcpcd dhcpd dhcrelay dmesg downinterfaces envsys \
|
||||||
fsck fsck_root ftp_proxy ftpd \
|
fsck fsck_root ftp_proxy ftpd \
|
||||||
hostapd httpd \
|
hostapd httpd \
|
||||||
identd ifwatchd inetd ipfilter ipfs ipmon ipnat ipsec \
|
identd ifwatchd inetd ipfilter ipfs ipmon ipnat ipsec \
|
||||||
|
15
etc/rc.d/dhcpcd
Executable file
15
etc/rc.d/dhcpcd
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# PROVIDE: dhcpcd
|
||||||
|
# REQUIRE: network mountcritlocal
|
||||||
|
# BEFORE: NETWORKING
|
||||||
|
|
||||||
|
$_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"
|
Loading…
Reference in New Issue
Block a user