Date: Thu, 30 Mar 1995 13:37:14 -0800 (PST) From: "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com> To: phk@ref.tfs.com (Poul-Henning Kamp) Cc: ache@freefall.cdrom.com, CVS-commiters@freefall.cdrom.com, cvs-etc@freefall.cdrom.com Subject: Re: cvs commit: src/etc/etc.i386 rc.i386 Message-ID: <199503302137.NAA06580@gndrsh.aac.dev.com> In-Reply-To: <199503301942.LAA14066@ref.tfs.com> from "Poul-Henning Kamp" at Mar 30, 95 11:42:28 am
next in thread | previous in thread | raw e-mail | index | archive | help
> > > I have about 5 or 6 things stacked up in my box right now that have > > to do with /etc/rc* and such... > > > > While we have the war going, can I suggest we add this to the end of > /etc/rc: > > if [ -d /etc/rc.d ] ; then > for i in /etc/rc.d/* ^^^^ Very dangerous. I am already trying to fix a bug report about /etc/netstart:for i in /etc/hostname.* matching things like hostname.ed0~ and hostname.ed0.bak, etc. The proposed solution was hostname.*[0-9], but that fails for folks with things like hostname.sl21 (yes, it is possible to have that many slip lines, though I doubt people are managing it with our /etc/netstart!!!). I have another proposal before me that adds variable(s) to sysconfig that says what interfaces we have, and what values to use for them. This totally eliminates /etc/hostname.*, but will make it harder for the install stuff to do the right things as it would have to learn how to edit /etc/sysconfig :-(. > do > if [ -f $i ] ; then > sh $i start > fi > done > fi > > There is >no way< presently for a package of any kind to get a clean > hook into the boot-sequence. > This is bad, stupid and evil. In BSD this has always been done by root editing /etc/rc.local, I never did like things that automagically went and f*cked around in /etc, I consider that evil and ugle. -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503302137.NAA06580>