1997-08-30 07:34:29 +04:00
|
|
|
# $NetBSD: rc.subr,v 1.2 1997/08/30 03:34:29 cjs Exp $
|
1997-08-29 06:24:04 +04:00
|
|
|
# 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
|
|
|
|
}
|