diff options
author | mtm <mtm@FreeBSD.org> | 2008-05-05 07:43:48 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2008-05-05 07:43:48 +0000 |
commit | c1a27fc22465de7d5e26a5b943ab5b1826ae2ea5 (patch) | |
tree | 5ff6f1d5a45576dbd7361b1762086e4ff21394b2 /etc/rc.subr | |
parent | 2fc089d229c867dd93da44d4410f1385d44490ea (diff) | |
download | FreeBSD-src-c1a27fc22465de7d5e26a5b943ab5b1826ae2ea5.zip FreeBSD-src-c1a27fc22465de7d5e26a5b943ab5b1826ae2ea5.tar.gz |
Fix improper use of checkyesno routine.
Noticed by: oliver
MFC after: 1 week
Diffstat (limited to 'etc/rc.subr')
-rw-r--r-- | etc/rc.subr | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/rc.subr b/etc/rc.subr index b74a086..eab1062 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -171,10 +171,14 @@ stop_boot() { local always - if [ -n "$1" ] && checkyesno $1; then + case $1 in + # "yes", "true", "on", or "1" + [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) always=true - else + ;; + *) always=false + ;; fi if [ "$autoboot" = yes -o "$always" = true ]; then echo "ERROR: ABORTING BOOT (sending SIGTERM to parent)!" |