Fix improper use of checkyesno routine.
Noticed by: oliver MFC after: 1 week
This commit is contained in:
parent
cc63a90dc8
commit
432d4f0bce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178770
@ -171,10 +171,14 @@ stop_boot()
|
|||||||
{
|
{
|
||||||
local always
|
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
|
always=true
|
||||||
else
|
;;
|
||||||
|
*)
|
||||||
always=false
|
always=false
|
||||||
|
;;
|
||||||
fi
|
fi
|
||||||
if [ "$autoboot" = yes -o "$always" = true ]; then
|
if [ "$autoboot" = yes -o "$always" = true ]; then
|
||||||
echo "ERROR: ABORTING BOOT (sending SIGTERM to parent)!"
|
echo "ERROR: ABORTING BOOT (sending SIGTERM to parent)!"
|
||||||
|
Loading…
Reference in New Issue
Block a user