From a65f4cb8bec3fbfaa26dec6b6868f62966453fdf Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 13 Jan 2024 21:58:11 +0100 Subject: [PATCH] init/boot: fix colors Signed-off-by: AuxXxilium --- files/initrd/opt/arc/boot.sh | 4 ++-- files/initrd/opt/arc/init.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/files/initrd/opt/arc/boot.sh b/files/initrd/opt/arc/boot.sh index 92d5b527..27df8a0a 100755 --- a/files/initrd/opt/arc/boot.sh +++ b/files/initrd/opt/arc/boot.sh @@ -200,12 +200,12 @@ elif [ "${DIRECTBOOT}" = "false" ]; then break fi if [ ${COUNT} -gt ${BOOTIPWAIT} ]; then - echo -e "\r\033[1;37m${DRIVER}: TIMEOUT\033[0m" + echo -e "\r\033[1;37m${DRIVER}:\033[0m TIMEOUT" break fi sleep 3 if ethtool ${N} | grep 'Link detected' | grep -q 'no'; then - echo -e "\r\033[1;37m${DRIVER}: NOT CONNECTED\033[0m" + echo -e "\r\033[1;37m${DRIVER}:\033[0m NOT CONNECTED" break fi COUNT=$((${COUNT} + 3)) diff --git a/files/initrd/opt/arc/init.sh b/files/initrd/opt/arc/init.sh index f8feb30d..2642e885 100755 --- a/files/initrd/opt/arc/init.sh +++ b/files/initrd/opt/arc/init.sh @@ -150,16 +150,16 @@ for N in ${ETHX}; do fi if [ -n "${IP}" ]; then SPEED=$(ethtool ${N} | grep "Speed:" | awk '{print $2}') - echo -e "\r${DRIVER} (${SPEED} | ${MSG}): Access \033[1;34mhttp://${IP}:7681\033[0m to connect to Arc via web." + echo -e "\r\033[1;37m${DRIVER} (${SPEED} | ${MSG}):\033[0m Access \033[1;34mhttp://${IP}:7681\033[0m to connect to Arc via web." break fi if [ ${COUNT} -gt ${BOOTIPWAIT} ]; then - echo -e echo -e "\r\033[1;37m${DRIVER}: TIMEOUT\033[0m" + echo -e echo -e "\r\033[1;37m${DRIVER}:\033[0m TIMEOUT" break fi sleep 3 if ethtool ${N} | grep 'Link detected' | grep -q 'no'; then - echo -e "\r\033[1;37m${DRIVER}: NOT CONNECTED\033[0m" + echo -e "\r\033[1;37m${DRIVER}:\033[0m NOT CONNECTED" break fi COUNT=$((${COUNT} + 3))