On Fri, Mar 14, 2008 at 08:15:51AM +0100, Erwin van Maanen wrote: > Hello everyone, > > I found out i couldn't disable my dhcp daemon yesterday and i think i've > traced the problem to this in /etc/rc: > > if [ X"${dhcpd_flags}" != X"NO" -a -f /etc/dhcpd.conf ]; then > > Now i have no clue what " -a -f " does (anyone care to point me to the right > manual?), but just setting dhcpd_flags=NO in rc.conf didn't disable it. > I had to rename the file dhcpd.conf file, so i guess the line does an OR > comparison instead of an AND comparison, anyone care to enlighten me or did > i actually find a minor bug? > > Kind regards, > > Erwin van Maanen > ACMEWeb I.S.
That expression is right (see test(1)). Where did you set dhcpd_flags to NO? In /etc/rc.conf? Do you perhaps have another definition in /etc/rc.conf.local or something like that? -Otto