Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Added cgd rc.d script and put it in the appropriate postinst...



details:   https://anonhg.NetBSD.org/src/rev/fc6b01a8517e
branches:  trunk
changeset: 537988:fc6b01a8517e
user:      elric <elric%NetBSD.org@localhost>
date:      Wed Oct 09 14:55:53 2002 +0000

description:
Added cgd rc.d script and put it in the appropriate postinstall and
mtree files.

diffstat:

 distrib/sets/lists/base/mi |   3 ++-
 distrib/sets/lists/etc/mi  |   3 ++-
 etc/mtree/NetBSD.dist      |   3 ++-
 etc/mtree/special          |   4 +++-
 etc/postinstall            |   4 ++--
 etc/rc.d/Makefile          |   4 ++--
 etc/rc.d/cgd               |  23 +++++++++++++++++++++++
 7 files changed, 36 insertions(+), 8 deletions(-)

diffs (134 lines):

diff -r ea89fe3b994c -r fc6b01a8517e distrib/sets/lists/base/mi
--- a/distrib/sets/lists/base/mi        Wed Oct 09 14:48:58 2002 +0000
+++ b/distrib/sets/lists/base/mi        Wed Oct 09 14:55:53 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.356 2002/10/06 17:28:47 thorpej Exp $
+# $NetBSD: mi,v 1.357 2002/10/09 14:55:53 elric Exp $
 .                      base-sys-root
 ./altroot              base-sys-root
 ./bin                  base-sys-root
@@ -43,6 +43,7 @@
 ./dev/fd               base-sys-root
 ./dev/log              base-sys-root
 ./etc                  base-sys-root
+./etc/cgd              base-sys-root
 ./etc/defaults         base-sys-root
 ./etc/kerberosIV       base-krb4-root
 ./etc/kerberosV                base-krb5-root
diff -r ea89fe3b994c -r fc6b01a8517e distrib/sets/lists/etc/mi
--- a/distrib/sets/lists/etc/mi Wed Oct 09 14:48:58 2002 +0000
+++ b/distrib/sets/lists/etc/mi Wed Oct 09 14:55:53 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.108 2002/10/05 15:24:43 grant Exp $
+# $NetBSD: mi,v 1.109 2002/10/09 14:55:53 elric Exp $
 ./.cshrc                               etc-util-etc
 ./.profile                             etc-util-etc
 ./dev/MAKEDEV.local                    etc-sys-etc
@@ -81,6 +81,7 @@
 ./etc/rc.d/bootconf.sh                 etc-sys-rc
 ./etc/rc.d/bootparams                  etc-bootserver-rc
 ./etc/rc.d/ccd                         etc-sys-rc
+./etc/rc.d/cgd                         etc-sys-rc
 ./etc/rc.d/cleartmp                    etc-sys-rc
 ./etc/rc.d/cron                                etc-cron-rc
 ./etc/rc.d/dhclient                    etc-dhclient-rc
diff -r ea89fe3b994c -r fc6b01a8517e etc/mtree/NetBSD.dist
--- a/etc/mtree/NetBSD.dist     Wed Oct 09 14:48:58 2002 +0000
+++ b/etc/mtree/NetBSD.dist     Wed Oct 09 14:55:53 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: NetBSD.dist,v 1.203 2002/09/25 01:07:42 wiz Exp $
+#      $NetBSD: NetBSD.dist,v 1.204 2002/10/09 14:55:54 elric Exp $
 #      @(#)4.4BSD.dist 8.1 (Berkeley) 6/13/93
 
 /set type=dir uname=root gname=wheel mode=0755
@@ -10,6 +10,7 @@
 ./dev/altq
 ./dev/fd
 ./etc
+./etc/cgd                      mode=0700
 ./etc/defaults
 ./etc/kerberosIV
 ./etc/kerberosV
diff -r ea89fe3b994c -r fc6b01a8517e etc/mtree/special
--- a/etc/mtree/special Wed Oct 09 14:48:58 2002 +0000
+++ b/etc/mtree/special Wed Oct 09 14:55:53 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: special,v 1.65 2002/09/16 02:36:53 perry Exp $
+#      $NetBSD: special,v 1.66 2002/10/09 14:55:54 elric Exp $
 #      @(#)special     8.2 (Berkeley) 1/23/94
 #
 # Hand-crafted mtree specification for the dangerous files.
@@ -27,6 +27,8 @@
 ./etc/bootparams               type=file mode=0644 optional
 ./etc/bootptab                 type=file mode=0644 optional
 ./etc/ccd.conf                 type=file mode=0644 optional
+./etc/cgd                      type=dir  mode=0700 optional
+./etc/cgd/cgd.conf             type=file mode=0600 optional
 ./etc/changelist               type=file mode=0644
 ./etc/crontab                  type=file mode=0644 optional
 ./etc/csh.cshrc                        type=file mode=0644
diff -r ea89fe3b994c -r fc6b01a8517e etc/postinstall
--- a/etc/postinstall   Wed Oct 09 14:48:58 2002 +0000
+++ b/etc/postinstall   Wed Oct 09 14:55:53 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.32 2002/09/20 12:57:33 christos Exp $
+# $NetBSD: postinstall,v 1.33 2002/10/09 14:55:54 elric Exp $
 #
 # Copyright (c) 2002 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -342,7 +342,7 @@
 
        compare_dir ${op} ${SRC_DIR}/etc/rc.d ${DEST_DIR}/etc/rc.d 555 \
                DAEMON LOGIN NETWORKING SERVERS accounting altqd amd \
-               apmd bootparams bootconf.sh ccd cleartmp cron \
+               apmd bootparams bootconf.sh ccd cgd cleartmp cron \
                dhclient dhcpd dhcrelay dmesg downinterfaces fsck \
                ifwatchd inetd ipfilter ipfs ipmon ipnat ipsec isdnd \
                kdc ldconfig lkm1 lkm2 lkm3 local lpd mopd motd \
diff -r ea89fe3b994c -r fc6b01a8517e etc/rc.d/Makefile
--- a/etc/rc.d/Makefile Wed Oct 09 14:48:58 2002 +0000
+++ b/etc/rc.d/Makefile Wed Oct 09 14:55:53 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2002/09/03 15:35:54 abs Exp $
+# $NetBSD: Makefile,v 1.35 2002/10/09 14:55:54 elric Exp $
 
 .include <bsd.own.mk>
 
@@ -7,7 +7,7 @@
 
 FILES= DAEMON LOGIN NETWORKING SERVERS \
        accounting altqd amd apmd \
-       bootparams bootconf.sh ccd cleartmp cron \
+       bootparams bootconf.sh ccd cgd cleartmp cron \
        dhclient dhcpd dhcrelay dmesg downinterfaces fsck \
        ifwatchd inetd ipfilter ipfs ipmon ipnat ipsec isdnd kdc \
        ldconfig lkm1 lkm2 lkm3 local lpd \
diff -r ea89fe3b994c -r fc6b01a8517e etc/rc.d/cgd
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/rc.d/cgd      Wed Oct 09 14:55:53 2002 +0000
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# $NetBSD: cgd,v 1.1 2002/10/09 14:55:55 elric Exp $
+#
+
+# PROVIDE: disks
+
+. /etc/rc.subr
+
+name="cgd"
+start_cmd="cgd_start"
+stop_cmd=":"
+
+cgd_start()
+{
+       if [ -f /etc/cgd/cgd.conf ]; then
+               echo "Configuring CGD devices."
+               cgdconfig -C
+       fi
+}
+
+load_rc_config $name
+run_rc_command "$1"



Home | Main Index | Thread Index | Old Index