Module Name:    src
Committed By:   roy
Date:           Tue Apr 28 23:30:34 UTC 2009

Modified Files:
        src/etc/defaults: rc.conf
        src/etc/rc.d: Makefile
Added Files:
        src/etc/rc.d: dhcpcd

Log Message:
Add an rc.d script for dhcpcd(8)


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/etc/defaults/rc.conf
cvs rdiff -u -r1.77 -r1.78 src/etc/rc.d/Makefile
cvs rdiff -u -r0 -r1.1 src/etc/rc.d/dhcpcd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/defaults/rc.conf
diff -u src/etc/defaults/rc.conf:1.102 src/etc/defaults/rc.conf:1.103
--- src/etc/defaults/rc.conf:1.102	Fri Apr 10 16:18:04 2009
+++ src/etc/defaults/rc.conf	Tue Apr 28 23:30:34 2009
@@ -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 --
 #	default configuration of /etc/rc.conf
@@ -159,6 +159,7 @@
 auto_ifconfig=YES				# config all avail. interfaces
 net_interfaces=""				# used only if above is NO
 flushroutes=YES					# flush routes in netstart
+dhcpcd=NO
 dhcpcd_flags="-q"				# For ifconfig_XXX=dhcp.
 dhclient=NO					# behave as a DHCP client
 			dhclient_flags=""	# blank: config all interfaces

Index: src/etc/rc.d/Makefile
diff -u src/etc/rc.d/Makefile:1.77 src/etc/rc.d/Makefile:1.78
--- src/etc/rc.d/Makefile:1.77	Tue Apr 21 16:08:57 2009
+++ src/etc/rc.d/Makefile	Tue Apr 28 23:30:34 2009
@@ -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>
 
@@ -18,7 +18,7 @@
 		accounting altqd amd apmd \
 		bootconf.sh bootparams btattach btconfig btdevctl bthcid \
 		ccd cgd cleartmp cron \
-		dhclient dhcpd dhcrelay dmesg downinterfaces envsys \
+		dhclient dhcpcd dhcpd dhcrelay dmesg downinterfaces envsys \
 		fsck fsck_root ftp_proxy ftpd \
 		hostapd httpd \
 		identd ifwatchd inetd ipfilter ipfs ipmon ipnat ipsec \

Added files:

Index: src/etc/rc.d/dhcpcd
diff -u /dev/null src/etc/rc.d/dhcpcd:1.1
--- /dev/null	Tue Apr 28 23:30:34 2009
+++ src/etc/rc.d/dhcpcd	Tue Apr 28 23:30:34 2009
@@ -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"

Reply via email to