Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Apr 2002 09:43:34 +0300
From:      Danny Braniss <danny@cs.huji.ac.il>
To:        Doug Barton <DougB@FreeBSD.org>
Cc:        "David O'Brien" <obrien@FreeBSD.org>, Freebsd Current <current@FreeBSD.org>
Subject:   Re: FreeBSD 5.0 Developer Preview #1 Now Available / diskless booting 
Message-ID:  <E170GV4-0002hE-00@cs.huji.ac.il>
In-Reply-To: Message from Doug Barton <DougB@FreeBSD.org>  of "Tue, 23 Apr 2002 22:32:59 PDT." <20020423223040.K66402-100000@master.gorean.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E170GV4-0002hE-00>