Date: Tue, 23 Apr 2002 22:32:59 -0700 (PDT) From: Doug Barton <DougB@FreeBSD.org> To: "David O'Brien" <obrien@FreeBSD.org> Cc: Danny Braniss <danny@cs.huji.ac.il>, Freebsd Current <current@FreeBSD.org> Subject: Re: FreeBSD 5.0 Developer Preview #1 Now Available / diskless booting Message-ID: <20020423223040.K66402-100000@master.gorean.org> In-Reply-To: <20020422144217.A73087@dragon.nuxi.com>
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 -- "We have known freedom's price. We have shown freedom's power. And in this great conflict, ... we will see freedom's victory." - George W. Bush, President of the United States State of the Union, January 28, 2002 Do YOU Yahoo!? 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?20020423223040.K66402-100000>