From owner-freebsd-current Tue Apr 23 23:43:52 2002 Delivered-To: freebsd-current@freebsd.org Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.10]) by hub.freebsd.org (Postfix) with ESMTP id B8BEE37B41B; Tue, 23 Apr 2002 23:43:35 -0700 (PDT) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by cs.huji.ac.il with esmtp (Exim 3.35 #2) id 170GV4-0002hE-00; Wed, 24 Apr 2002 09:43:34 +0300 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Doug Barton Cc: "David O'Brien" , Freebsd Current Subject: Re: FreeBSD 5.0 Developer Preview #1 Now Available / diskless booting In-Reply-To: Message from Doug Barton of "Tue, 23 Apr 2002 22:32:59 PDT." <20020423223040.K66402-100000@master.gorean.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 24 Apr 2002 09:43:34 +0300 From: Danny Braniss Message-Id: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > On Mon, 22 Apr 2002, David O'Brien wrote: > > > +if [ -z "`hostname -s`" ]; then > > + hostname=`kenv dhcp.host-name` > > + hostname $hostname > > + echo "Hostname is $hostname" > > +fi > > If you wanted to match the style for most of the rc* files, and avoid an > unecessary call to 'test,' you could do: > > case `hostname -s` in > '') > foo > ;; > esac > > Not a big deal, but I thought I'd mention it. :) > > Doug done, and thanks, danny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message