Return to BSD News archive
#! rnews 1463 bsd Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!newsfeed.internetmci.com!in2.uu.net!EU.net!sun4nl!xs4all!usenet From: Sander Temme <sctemme@xs4all.nl> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: /etc/sysconfig run from both rc and netstart Date: Sat, 16 Mar 1996 23:38:16 +0100 Organization: Wherever Lines: 21 Message-ID: <314B42D8.2781E494@xs4all.nl> References: <4i7cph$gsu@news.ios.com> NNTP-Posting-Host: asd03-26.dial.xs4all.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0 (X11; I; FreeBSD 2.1.0-RELEASE i386) Glen Mann wrote: > > Hello all. > > The file /etc/sysconfig is sourced in both /etc/rc and /etc/netstart. > /etc/netstart is called by /etc/rc. Is there a reason to run sysconfig > twice? > It's sourced, that means the rc and netstart scripts have access to the variables and definitions in /etc/sysconfig and can do cool things with them. So yeah, you need to source them in both scripts. Isn't every script executed in a subshell? Does a subshell have access to variables of its parent shell? S. (can make a broomstick spawn more broomsticks) -- Sander the Sybersurfer sctemme@xs4all.nl Powered by FreeBSD http://www.xs4all.nl/~sctemme Finger sctemme@xs4all.nl for PGP Public Key.