From owner-freebsd-stable Sun Jul 5 13:33:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA24313 for freebsd-stable-outgoing; Sun, 5 Jul 1998 13:33:57 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from tim.xenologics.com (tim.xenologics.com [194.77.5.24]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA24263 for ; Sun, 5 Jul 1998 13:33:52 -0700 (PDT) (envelope-from seggers@semyam.dinoco.de) Received: (from uucp@localhost) by tim.xenologics.com (8.8.5/8.8.8) with UUCP id WAA26480; Sun, 5 Jul 1998 22:05:10 +0200 (MET DST) Received: from localhost (localhost [127.0.0.1]) by semyam.dinoco.de (8.8.8/8.8.8) with ESMTP id VAA01882; Sun, 5 Jul 1998 21:06:33 +0200 (CEST) (envelope-from seggers@semyam.dinoco.de) Message-Id: <199807051906.VAA01882@semyam.dinoco.de> Cc: Stefan Eggers , heller@cdnow.com To: freebsd-stable@FreeBSD.ORG Subject: Re: July 2nd SNAP question. In-reply-to: Your message of "Sun, 05 Jul 1998 18:25:18 +0200." <199807051625.SAA26093@semyam.dinoco.de> Date: Sun, 05 Jul 1998 21:06:33 +0200 From: Stefan Eggers Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > This code from rc.network displays "Doing initial network setup: hostname" > > > > network_pass1() { > > echo -n 'Doing initial network setup:' > > # Set the host name if it is not already set > > if [ -z "`hostname -s`" ] ; then > > hostname $hostname > > echo -n ' hostname' > ^ ^ > > fi > > > Anybody else see this or just me? > > You have apostrophe/single quote characters where you need the backtick > characters. So echo just outputs the string " hostname" instead of the > result of executing hostname. Of course this is assuming the one asking wants the hostname there instead of just "hostname". Otherwise I don't see the problem. The initial string will be output in any case and I - like someone else who noted it - see nothing wrong with setting the hostname in /etc/rc.conf and then handing it here to the right command to make it known to the system. It's the first part of the network init after all. So this is correct. Stefan. -- Stefan Eggers Lu4 yao2 zhi1 ma3 li4, Max-Slevogt-Str. 1 ri4 jiu3 jian4 ren2 xin1. 51109 Koeln Federal Republic of Germany To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message