NetBSD/etc/rc.subr

16 lines
336 B
Plaintext
Raw Normal View History

1997-08-30 07:34:29 +04:00
# $NetBSD: rc.subr,v 1.2 1997/08/30 03:34:29 cjs Exp $
# functions used by various rc scripts
# Test $1 variable, and warn if not set to YES or NO.
checkyesno() {
eval value=\$${1};
if [ "$value" = YES ]; then
return 0;
else
if [ "$value" != NO ]; then
logger -s "WARNING: \$${1} is not set properly."
fi
return 1;
fi
}