init/boot: fix coloring

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-01-13 18:17:27 +01:00
parent 8a88ebfd1e
commit f10034acbb
2 changed files with 4 additions and 4 deletions

View File

@ -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))

View File

@ -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))