summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.subr8
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)!"
OpenPOWER on IntegriCloud