Re: HEADS UP: change in ports rc.d script behaviour

From: Christian Weisgerber <naddy_at_mips.inka.de>
Date: Mon, 26 Jul 2004 11:23:52 +0000 (UTC)
Craig Rodrigues <rodrigc_at_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_at_mips.inka.de
Received on Mon Jul 26 2004 - 09:23:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:03 UTC