Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 1995 08:24:33 +0200 (MET DST)
From:      Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de>
To:        rgrimes@gndrsh.aac.dev.com (Rodney W. Grimes)
Cc:        freebsd-current@freefall.cdrom.com (user alias)
Subject:   Re: bug in /usr/src/etc/rc (netstart)
Message-ID:  <199505110624.IAA15370@gilberto.physik.rwth-aachen.de>
In-Reply-To: <199505101651.JAA08095@gndrsh.aac.dev.com> from "Rodney W. Grimes" at May 10, 95 09:51:17 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> > 
> > 
> > netstart is started using sh /etc/netstart (that was a . /etc/netstart
> > formerly and it used to work). Now, starting it with sh /etc/netstart
> > $hostname is unknown and the consequences are quite unfriendly.
> 
> Hostname should be set by /etc/sysconfig, /etc/sysconfig is .'ed into
> /etc/rc.  Infact all variables that where set in /etc/netstart should
> now be set by /etc/sysconfig.
> 
> Do you infact have /etc/sysconfig 1.11, /etc/rc 1.63 ?

I checked again now definitely with both, sysconfig 1.11, rc 1.63 and
when I have the sh /etc/netstart in rc the hostname is not being set.
How should it ? I don't need to tell you that a sub shell does not inherit
variables that are set in the parent unless the subshell is 'sourced'.

It works ok if I replace sh with . (source) (which was in some
earlier version of rc anyway).


> 
> 
> 
> -- 
> Rod Grimes                                      rgrimes@gndrsh.aac.dev.com
> Accurate Automation Company                   Custom computers for FreeBSD
> 

--Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
FreeBSD blues.physik.rwth-aachen.de 2.0-BUILT-19950507 FreeBSD 2.0-BUILT-1995
0507 #0: Sun May  7 18:08:05 MET DST 1995     root@blues.physik.rwth-aachen.d
e:/usr/src/sys/compile/BLUESGUS  i386



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505110624.IAA15370>