Merge pull request #1787 from tlaurion/fix-whiptail_not_whowing_if_not_called_from_gui-init

init: add export BG_COLOR_MAIN_MENU="normal" so that media-scan, confiig-gui flash-gui etc can be called from Recovery shell
This commit is contained in:
Thierry Laurion 2024-09-09 09:13:10 -04:00 committed by GitHub
commit ebba590e63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,9 +105,11 @@ fi
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"}"
export BG_COLOR_MAIN_MENU="normal"
else
export TEXT_BG_COLOR_WARNING="${CONFIG_WARNING_TEXT_BG_COLOR:-"yellow"}"
export TEXT_BG_COLOR_ERROR="${CONFIG_ERROR_TEXT_BG_COLOR:-"red"}"
export BG_COLOR_MAIN_MENU="normal"
fi
if [ "$CONFIG_TPM" = "y" ]; then