From f10034acbb9f3e47825ffddf7d4b17def87a2a96 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 13 Jan 2024 18:17:27 +0100 Subject: [PATCH] init/boot: fix coloring Signed-off-by: AuxXxilium --- files/initrd/opt/arc/boot.sh | 4 ++-- files/initrd/opt/arc/init.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/initrd/opt/arc/boot.sh b/files/initrd/opt/arc/boot.sh index 3e1ace12..92d5b527 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${DRIVER}: TIMEOUT." + echo -e "\r\033[1;37m${DRIVER}: TIMEOUT\033[0m" break fi sleep 3 if ethtool ${N} | grep 'Link detected' | grep -q 'no'; then - echo -e "\r${DRIVER}: NOT CONNECTED" + echo -e "\r\033[1;37m${DRIVER}: NOT CONNECTED\033[0m" break fi COUNT=$((${COUNT} + 3)) diff --git a/files/initrd/opt/arc/init.sh b/files/initrd/opt/arc/init.sh index 4489314d..f8feb30d 100755 --- a/files/initrd/opt/arc/init.sh +++ b/files/initrd/opt/arc/init.sh @@ -154,12 +154,12 @@ for N in ${ETHX}; do break fi if [ ${COUNT} -gt ${BOOTIPWAIT} ]; then - echo -e "\r${DRIVER}: TIMEOUT" + echo -e echo -e "\r\033[1;37m${DRIVER}: TIMEOUT\033[0m" break fi sleep 3 if ethtool ${N} | grep 'Link detected' | grep -q 'no'; then - echo -e "\r${DRIVER}: NOT CONNECTED" + echo -e "\r\033[1;37m${DRIVER}: NOT CONNECTED\033[0m" break fi COUNT=$((${COUNT} + 3))