error in src/etc/rc.d/mountcritlocal
Oliver Lehmann
oliver at FreeBSD.org
Wed Apr 30 13:14:11 UTC 2008
Mike Makonnen wrote:
> I'm not sure what you mean. The checkyesno() routine considers "true" a
> valid parameter. Could you please post the exact error you're getting.
I already posted it... I'm getting:
$true is not set properly - see rc.conf(5)
This is because:
you call "start_boot true"
start_boot itself calls checkyesno $1 - so it calls "checkyesno true"
checkyesno then defines _value with "eval _value=\$${1}" so _value gets
$true which is not an allowed value.
let me past the comment of checkyesno:
# checkyesno var
# Test $1 variable, and warn if not set to YES or NO.
# Return 0 if it's "yes" (et al), nonzero otherwise.
A variablename has to be handed over to checkyesno, not a value like
"true" or "yes" or whatever else. You see the error?
--
Oliver Lehmann
http://www.pofo.de/
http://wishlist.ans-netz.de/
More information about the freebsd-stable
mailing list