mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
Apply background colors when fbwhiptail binary is present.
This commit is contained in:
parent
519bd445d6
commit
90ad708849
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user