Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Sep 2002 19:09:44 +0200 (SAT)
From:      John Hay <jhay@zibbi.icomtek.csir.co.za>
To:        makonnen@pacbell.net (Mike Makonnen)
Cc:        gordon@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/etc/defaults rc.conf
Message-ID:  <200209031709.g83H9iT8089234@zibbi.icomtek.csir.co.za>
In-Reply-To: <20020902122615.739942b4.makonnen@pacbell.net> from Mike Makonnen at "Sep 2, 2002 12:26:15 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> I didn't port this script because bootparamd isn't started from the old rc.
> We don't even have a knob for it in defaults/rc.conf. But even with this patch
> I don't see how it can start for you. You need # KEYWORD: FreeBSD at the
> top of the file. It must be starting some other way. Please add the KEYWORD
> line and a knob to defaults/rc.conf and resubmit. Thanks!

Ok, is this better? I don't know where in rc.conf the bootparamd lines
should be added. I added it just after rarpd because those are used
together a lot, but move it somewhere else if you want to.

The reason I didn't have the KEYWORD line is that my bootparam server is
a month old and that code do work without it. I tried this on a machine
with today's current.

John
-- 
John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org


Index: etc/defaults/rc.conf
===================================================================
RCS file: /home/ncvs/src/etc/defaults/rc.conf,v
retrieving revision 1.157
diff -u -r1.157 rc.conf
--- etc/defaults/rc.conf	2 Sep 2002 16:35:01 -0000	1.157
+++ etc/defaults/rc.conf	3 Sep 2002 17:00:23 -0000
@@ -157,6 +157,9 @@
 rwhod_flags=""			# Flags for rwhod
 rarpd_enable="NO"		# Run rarpd (or NO).
 rarpd_flags=""			# Flags to rarpd.
+bootparamd_enable="NO"		# Run bootparamd (or NO).
+bootparamd_flags=""		# Flags to bootparamd.
+
 xtend_enable="NO"		# Run the X-10 power controller daemon.
 xtend_flags=""			# Flags to xtend (if enabled).
 pppoed_enable="NO"		# Run the PPP over Ethernet daemon.
Index: etc/rc.d/bootparams
===================================================================
RCS file: /home/ncvs/src/etc/rc.d/bootparams,v
retrieving revision 1.2
diff -u -r1.2 bootparams
--- etc/rc.d/bootparams	13 Jun 2002 22:14:36 -0000	1.2
+++ etc/rc.d/bootparams	3 Sep 2002 17:00:48 -0000
@@ -7,12 +7,13 @@
 # PROVIDE: bootparams
 # REQUIRE: rpcbind DAEMON
 # BEFORE:  LOGIN
+# KEYWORD: FreeBSD
 
 . /etc/rc.subr
 
 name="bootparamd"
-rcvar=$name
-command="/usr/sbin/rpc.${name}"
+rcvar=`set_rcvar`
+command="/usr/sbin/${name}"
 required_files="/etc/bootparams"
 
 load_rc_config $name

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209031709.g83H9iT8089234>