Date: Sun, 17 Jun 2001 21:28:02 -0700 (PDT) From: Gordon Tetlow <gordont@bluemtn.net> To: "David O'Brien" <obrien@FreeBSD.ORG> Cc: "David O'Brien -Hackers" <freebsd-hackers@FreeBSD.ORG> Subject: Re: import NetBSD rc system Message-ID: <Pine.BSF.4.33.0106172119260.25983-200000@sdmail0.sd.bmarts.com> In-Reply-To: <20010616091731.A81063@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-109709156-992838482=:25983 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 16 Jun 2001, David O'Brien wrote: > On Sat, Jun 16, 2001 at 07:58:06AM -0700, Gordon Tetlow wrote: > > I like Matt's idea (I think it was Matt) to have a new_rc switch. I'll > > look at adding the code for it and submitting a patch, > > You are going off on a tangent. You are worried about the flag day > before we even have a flag to run up the poll. Actually, this makes the import of the new rc system much easier. I've attached the patch against an older (may 11th) world. It should make it pretty clear. After this, all you need to do is import the rc.subr and the rc.d directory from the NetBSD project. Then to test the new boot system, all you need is rcorder and new_rc switched on in /etc/rc.conf. If you need to get back to the old boot system, just change the new_rc knob to off and you can boot normally. > > > > /etc/rc.subr ported > > > > > > What changes were needed here? > > > > I basically added a function called checkwildno() that is similar to > > checkyesno that returns 1 for NO (plus variants) or '' and returns 0 for > > anything else. This gets rid of alot of case statements in the modules, > > making them simple if's. > > Again, why don't we just concentrate on porting the NetBSD scripts and > not the second system enhancements? I agree. I'm a little further ahead on my local box than where we are on the repo. My big question is, do we want to keep the current boot order/logic or are we going with NetBSDs? Either way is fine by me, although I've tried to keep FreeBSDs system more than NetBSDs. -gordon --0-109709156-992838482=:25983 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="rc.diff" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.4.33.0106172128020.25983@sdmail0.sd.bmarts.com> Content-Description: Content-Disposition: attachment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weSBzbyB0aGUgcmVib290aW5nIC9kZXYvcmFuZG9tIGNhbiByZXNlZWQN CiAjDQogY2FzZSAke2VudHJvcHlfZmlsZX0gaW4NCg== --0-109709156-992838482=:25983-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0106172119260.25983-200000>