init/boot: fix colors

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-01-13 21:58:11 +01:00
parent f10034acbb
commit a65f4cb8be
2 changed files with 5 additions and 5 deletions

View File

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

View File

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