Use yesno

This commit is contained in:
Roy Marples 2007-11-23 12:15:57 +00:00
parent bbd25ccc00
commit cd0cd1167e

View File

@ -47,10 +47,7 @@ start() {
# Ensure that the users rc.conf will start us - ignore the defaults # Ensure that the users rc.conf will start us - ignore the defaults
eval enabled=\$$(basename "${svc}")_enable eval enabled=\$$(basename "${svc}")_enable
case "$enabled" in yesno ${enabled} || continue
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) ;;
*) continue ;;
esac
# Good to go! # Good to go!
"$svc" start && started="${started} ${svc}" "$svc" start && started="${started} ${svc}"