Module Name:    src
Committed By:   riz
Date:           Tue Sep  6 21:32:30 UTC 2011

Modified Files:
        src/distrib/sets/lists/etc: mi
        src/etc/defaults: rc.conf
        src/etc/rc.d: Makefile
Added Files:
        src/etc/rc.d: devpubd

Log Message:
Create and install an rc.d file for devpubd - a daemon to listen
on drvctl and autocreate device nodes in /dev for those which don't have any.
Set the default to "NO" for now.


To generate a diff of this commit:
cvs rdiff -u -r1.224 -r1.225 src/distrib/sets/lists/etc/mi
cvs rdiff -u -r1.114 -r1.115 src/etc/defaults/rc.conf
cvs rdiff -u -r1.84 -r1.85 src/etc/rc.d/Makefile
cvs rdiff -u -r0 -r1.1 src/etc/rc.d/devpubd

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

Modified files:

Index: src/distrib/sets/lists/etc/mi
diff -u src/distrib/sets/lists/etc/mi:1.224 src/distrib/sets/lists/etc/mi:1.225
--- src/distrib/sets/lists/etc/mi:1.224	Fri May 27 09:28:41 2011
+++ src/distrib/sets/lists/etc/mi	Tue Sep  6 21:32:30 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.224 2011/05/27 09:28:41 plunky Exp $
+# $NetBSD: mi,v 1.225 2011/09/06 21:32:30 riz Exp $
 #
 # Note: end-user configuration files that are moved to another location
 #	should not be marked "obsolete"; they should just be removed from
@@ -183,6 +183,7 @@
 ./etc/rc.d/cgd					etc-sys-rc
 ./etc/rc.d/cleartmp				etc-sys-rc
 ./etc/rc.d/cron					etc-cron-rc
+./etc/rc.d/devpubd				etc-sys-rc
 ./etc/rc.d/dhclient				etc-dhclient-rc
 ./etc/rc.d/dhcpcd				etc-dhcpcd-rc
 ./etc/rc.d/dhcpd				etc-dhcpd-rc

Index: src/etc/defaults/rc.conf
diff -u src/etc/defaults/rc.conf:1.114 src/etc/defaults/rc.conf:1.115
--- src/etc/defaults/rc.conf:1.114	Mon Aug 22 18:54:06 2011
+++ src/etc/defaults/rc.conf	Tue Sep  6 21:32:29 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: rc.conf,v 1.114 2011/08/22 18:54:06 jym Exp $
+#	$NetBSD: rc.conf,v 1.115 2011/09/06 21:32:29 riz Exp $
 #
 # /etc/defaults/rc.conf --
 #	default configuration of /etc/rc.conf
@@ -316,6 +316,7 @@
 # Other daemons.
 #
 rwhod=NO		rwhod_flags="-u _rwhod"
+devpubd=NO		devpubd_flags=""	# autocreate nodes for new devs
 envsys=NO					# Set /etc/envsys.conf preferences
 
 # Hardware daemons.

Index: src/etc/rc.d/Makefile
diff -u src/etc/rc.d/Makefile:1.84 src/etc/rc.d/Makefile:1.85
--- src/etc/rc.d/Makefile:1.84	Fri May 27 09:28:42 2011
+++ src/etc/rc.d/Makefile	Tue Sep  6 21:32:29 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.84 2011/05/27 09:28:42 plunky Exp $
+# $NetBSD: Makefile,v 1.85 2011/09/06 21:32:29 riz Exp $
 
 .include <bsd.own.mk>
 
@@ -17,7 +17,7 @@
 		DAEMON DISKS LOGIN NETWORKING SERVERS \
 		accounting altqd amd apmd \
 		bluetooth bootconf.sh bootparams \
-		ccd cgd cleartmp cron \
+		ccd cgd cleartmp cron devpubd \
 		dhclient dhcpcd dhcpd dhcrelay dmesg downinterfaces envsys \
 		fsck fsck_root ftp_proxy ftpd \
 		gpio \

Added files:

Index: src/etc/rc.d/devpubd
diff -u /dev/null src/etc/rc.d/devpubd:1.1
--- /dev/null	Tue Sep  6 21:32:30 2011
+++ src/etc/rc.d/devpubd	Tue Sep  6 21:32:29 2011
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $NetBSD: devpubd,v 1.1 2011/09/06 21:32:29 riz Exp $
+#
+
+# PROVIDE: devpubd
+# REQUIRE: DAEMON
+# BEFORE:  LOGIN
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="devpubd"
+rcvar=$name
+command="/sbin/${name}"
+
+load_rc_config $name
+run_rc_command "$1"

Reply via email to