Add support for MOTD logo colors

- we might want to have different welcome colors for stable and nightly images
- this adds another branding option alongside with VENDOR, VENDORURL, VENDORSUPPORT, ...
This commit is contained in:
Igor Pecovnik
2025-03-28 12:02:13 +01:00
committed by Igor
parent 49714857c6
commit a0c35c73a6
2 changed files with 6 additions and 1 deletions

View File

@@ -119,7 +119,11 @@ if systemctl is-active --quiet service hostapd && [[ -f /etc/hostapd/hostapd.con
fi
# Display software vendor logo
echo -e "\e[1;91m$(figlet -f small " ${VENDOR}")\e[0m"
if [[ -n "${VENDORCOLOR}" ]]; then
echo -e "\e[38;2;${VENDORCOLOR}m$(figlet -f small " ${VENDOR}")\e[0m"
else
echo -e "\e[1;91m$(figlet -f small " ${VENDOR}")\e[0m"
fi
# Read RPI model from cpuinfo
if [[ ${BOARD:-} == rpi4b ]]; then