From owner-freebsd-hackers Tue Mar 12 8: 0:18 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from straylight.ringlet.net (discworld.nanolink.com [217.75.135.248]) by hub.freebsd.org (Postfix) with SMTP id D462737B91E for ; Tue, 12 Mar 2002 07:59:17 -0800 (PST) Received: (qmail 42176 invoked by uid 1000); 12 Mar 2002 15:58:20 -0000 Date: Tue, 12 Mar 2002 17:58:20 +0200 From: Peter Pentchev To: Vladimir Terziev Cc: Jim Flowers , 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> Mail-Followup-To: Vladimir Terziev , Jim Flowers , freebsd-hackers@FreeBSD.ORG References: <20020312162024.4d19feee.vladimirt@rila.bg> <20020312093027.M95579@ezo.net> <20020312163842.7be15f79.vladimirt@rila.bg> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="VS++wcV0S1rZb1Fb" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020312163842.7be15f79.vladimirt@rila.bg>; from vladimirt@rila.bg on Tue, Mar 12, 2002 at 04:38:42PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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" 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