Date: Tue, 12 Mar 2002 17:58:20 +0200 From: Peter Pentchev <roam@ringlet.net> To: Vladimir Terziev <vladimirt@rila.bg> Cc: Jim Flowers <jflowers@ezo.net>, freebsd-hackers@FreeBSD.ORG Subject: Re: Running different startup scripts on behalf of loaded kernel and kernel modules Message-ID: <20020312175820.A93263@straylight.oblivion.bg> In-Reply-To: <20020312163842.7be15f79.vladimirt@rila.bg>; from vladimirt@rila.bg on Tue, Mar 12, 2002 at 04:38:42PM %2B0200 References: <20020312162024.4d19feee.vladimirt@rila.bg> <20020312093027.M95579@ezo.net> <20020312163842.7be15f79.vladimirt@rila.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
--VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 12, 2002 at 04:38:42PM +0200, Vladimir Terziev wrote: > On Tue, 12 Mar 2002 09:30:27 -0500 > "Jim Flowers" <jflowers@ezo.net> wrote: > > > Hi hackers, > > >=20 > > > I have to configure a box, which has to run different startup=20 > > > scrips on behalf of loaded kernel and kernel modules at startup.=20 > > > What I mean? > > >=20 > > > I have done a loader configuration menu (using bootforth language) > > > , which allows different kernel and groups of kernel modules=20 > > > to be load on adminitrator's desire at boot time. > > >=20 > > > What I need to do, else, is to run different startup scrips=20 > > > on behalf of choosed config menu item. > > >=20 > > > How can I do this? I have no ideas for now ... > > >=20 > > > Any ideas? > >=20 > > create/move startup_scripts.sh into/out of /usr/local/etc/rc.d? >=20 > I think, I should refine my question ... >=20 > How can I understand, when the startup scripts are going to be runned, > which menu item is choosed ? I think that your scripts should set some variables in the loader's environment that can later be passed on to the kernel and read by userland utilities (including startup scripts) - see kenv(1). Then again, I have no idea exactly how this should be done, and whether this is really the right way to go. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 "yields falsehood, when appended to its quotation." yields falsehood, when = appended to its quotation. --VS++wcV0S1rZb1Fb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjyOJZwACgkQ7Ri2jRYZRVPlHgCgrn2oSxlK2i/Osu794MXouAIV vF4AoKJ8b8LWeQMYmp/Sk4vkMd9VrNwf =mWyf -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb-- 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?20020312175820.A93263>