Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jul 2004 11:23:52 +0000 (UTC)
From:      naddy@mips.inka.de (Christian Weisgerber)
To:        freebsd-current@freebsd.org
Subject:   Re: HEADS UP: change in ports rc.d script behaviour
Message-ID:  <ce2pk8$2nqg$1@kemoauc.mips.inka.de>
References:  <20040725141208.GA28326@rogue.acs-et.com> <20040725173934.GA1213@crodrigues.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Craig Rodrigues <rodrigc@crodrigues.org> wrote:

> > 4. If you must include a default value for an rc.conf(5) knob,
> >    make sure that you put it in an if [ -z "$foo_knob"] clause.
> 
> As a simple alternative to an if clause, I've done this for the 
> isc-dhcp3-server port:
> 
> [ -z "$dhcpd_enable" ] && dhcpd_enable="NO"

dhcpd_enable=${dhcpd_enable:-NO}

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ce2pk8$2nqg$1>