Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Create and install an rc.d file for devpubd - a daemon to li...
details: https://anonhg.NetBSD.org/src/rev/1135ef856826
branches: trunk
changeset: 769357:1135ef856826
user: riz <riz%NetBSD.org@localhost>
date: Tue Sep 06 21:32:29 2011 +0000
description:
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.
diffstat:
distrib/sets/lists/etc/mi | 3 ++-
etc/defaults/rc.conf | 3 ++-
etc/rc.d/Makefile | 4 ++--
etc/rc.d/devpubd | 17 +++++++++++++++++
4 files changed, 23 insertions(+), 4 deletions(-)
diffs (73 lines):
diff -r 8a206ea7f16b -r 1135ef856826 distrib/sets/lists/etc/mi
--- a/distrib/sets/lists/etc/mi Tue Sep 06 21:30:12 2011 +0000
+++ b/distrib/sets/lists/etc/mi Tue Sep 06 21:32:29 2011 +0000
@@ -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
diff -r 8a206ea7f16b -r 1135ef856826 etc/defaults/rc.conf
--- a/etc/defaults/rc.conf Tue Sep 06 21:30:12 2011 +0000
+++ b/etc/defaults/rc.conf Tue Sep 06 21:32:29 2011 +0000
@@ -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.
diff -r 8a206ea7f16b -r 1135ef856826 etc/rc.d/Makefile
--- a/etc/rc.d/Makefile Tue Sep 06 21:30:12 2011 +0000
+++ b/etc/rc.d/Makefile Tue Sep 06 21:32:29 2011 +0000
@@ -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 \
diff -r 8a206ea7f16b -r 1135ef856826 etc/rc.d/devpubd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/rc.d/devpubd Tue Sep 06 21:32:29 2011 +0000
@@ -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"
Home |
Main Index |
Thread Index |
Old Index