From 90ad70884960ce3a2fb31d76b8191d1d3fdea386 Mon Sep 17 00:00:00 2001 From: Thierry Laurion Date: Fri, 17 Dec 2021 14:45:53 -0500 Subject: [PATCH] Apply background colors when fbwhiptail binary is present. --- initrd/init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/initrd/init b/initrd/init index 85f84c26..cdc75543 100755 --- a/initrd/init +++ b/initrd/init @@ -44,10 +44,10 @@ hwclock -l -s . /etc/config #Specify whiptail background colors cues under FBWhiptail only -if [ "$CONFIG_FBWHIPTAIL" = "y" ]; then +if [ -x /bin/fbwhiptail ]; then export BG_COLOR_WARNING="${CONFIG_WARNING_BG_COLOR:-"--background-gradient 0 0 0 150 125 0"}" export BG_COLOR_ERROR="${CONFIG_ERROR_BG_COLOR:-"--background-gradient 0 0 0 150 0 0"}" -elif [ "$CONFIG_NEWT" = "y" ];then +else export BG_COLOR_WARNING="${CONFIG_WARNING_BG_COLOR:-""}" export BG_COLOR_ERROR="${CONFIG_ERROR_BG_COLOR:-""}" fi