From f3cff8d9fbf7e812b018f8d698639fe46c9baa3c Mon Sep 17 00:00:00 2001 From: Yixun Lan Date: Wed, 17 Dec 2014 22:20:17 +0800 Subject: [PATCH] 00-splash.sh: enter shell while fail boot, bug #523512 --- defaults/initrd.d/00-splash.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/defaults/initrd.d/00-splash.sh b/defaults/initrd.d/00-splash.sh index 2f1ae77..1979fe7 100755 --- a/defaults/initrd.d/00-splash.sh +++ b/defaults/initrd.d/00-splash.sh @@ -166,9 +166,11 @@ prompt_user() { eval local oldvalue='$'${1} - [ $# != 2 -a $# != 3 ] && \ + if [ $# != 2 -a $# != 3 ]; then bad_msg "Bad invocation of function prompt_user." - bad_msg "Please file a bug report with this message" && exit 1 + bad_msg "Please file a bug report with this message" + exit 1 + fi [ -n "${3}" ] && local explnt=" or : ${3}" || local explnt="." splashcmd verbose