From owner-freebsd-current Thu May 11 09:37:59 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA05077 for current-outgoing; Thu, 11 May 1995 09:37:59 -0700 Received: from campino.informatik.rwth-aachen.de (campino.Informatik.RWTH-Aachen.DE [137.226.225.2]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id JAA04304 for ; Thu, 11 May 1995 09:26:27 -0700 Received: from gilberto.physik.rwth-aachen.de by campino.informatik.rwth-aachen.de (4.1/campino-7) id AA26082; Thu, 11 May 95 08:13:09 +0200 Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.8/8.6.9) id IAA15370; Thu, 11 May 1995 08:24:33 +0200 Message-Id: <199505110624.IAA15370@gilberto.physik.rwth-aachen.de> Subject: Re: bug in /usr/src/etc/rc (netstart) To: rgrimes@gndrsh.aac.dev.com (Rodney W. Grimes) Date: Thu, 11 May 1995 08:24:33 +0200 (MET DST) Cc: freebsd-current@freefall.cdrom.com (user alias) In-Reply-To: <199505101651.JAA08095@gndrsh.aac.dev.com> from "Rodney W. Grimes" at May 10, 95 09:51:17 am From: Christoph Kukulies Reply-To: Christoph Kukulies X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1284 Sender: current-owner@FreeBSD.org Precedence: bulk > > > > > > > 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