16 lines
336 B
Plaintext
16 lines
336 B
Plaintext
# $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
|
|
}
|