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.
This commit is contained in:
riz 2011-09-06 21:32:29 +00:00
parent b146b6f7a7
commit 6fc3b870af
4 changed files with 23 additions and 4 deletions

View File

@ -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

View File

@ -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 @@ sdpd=YES sdpd_flags=""
# 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.

View File

@ -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 @@ CONFIGFILES=\
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 \

17
etc/rc.d/devpubd Executable file
View File

@ -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"