Improve log clarity and fix typos (#3896)

This commit is contained in:
pisanvs 2025-02-25 11:00:39 -03:00 committed by GitHub
parent 714ca8a344
commit bdcc2b90d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 6 deletions

View File

@ -10,7 +10,7 @@ while [ ! "$(docker ps -q -f name=hassio_cli)" ]; do
sleep 1
i=$((i+1))
if [ $i = 60 ]; then
echo "[WARN] Home Assistant CLI not starting! Jump into emergency console..."
echo "[WARN] Home Assistant CLI not starting! Jumping into emergency console..."
exec /bin/ash -l
fi
done

View File

@ -7,7 +7,7 @@ USE_USB=0
# Check and mount usb CONFIG to folder
if findfs LABEL="CONFIG" > /dev/null 2>&1; then
echo "[Info] Use USB stick for import CONFIG"
echo "[Info] Attempting to import CONFIG from USB stick"
systemctl start mnt-config.mount
if ! systemctl -q is-active mnt-config.mount; then
@ -21,13 +21,14 @@ fi
# Use boot CONFIG folder
if [ ${USE_USB} = 0 ] && [ -d ${BOOT_CONFIG} ]; then
echo "[Info] Use boot partition for import CONFIG"
echo "[Info] Attempting to import CONFIG from boot partition"
CONFIG_DIR=${BOOT_CONFIG}
elif [ ${USE_USB} = 0 ]; then
echo "[Warning] No config partition found"
exit 0
fi
echo "[Info] Imported CONFIG succesfully"
##
# NetworkManager
@ -97,7 +98,7 @@ fi
# Firmware update / Only USB
UPTIME=$(awk '{printf "%0.f", $1}' /proc/uptime)
if ls ${USB_CONFIG}/*.raucb > /dev/null 2>&1 && [ "${UPTIME}" -ge "300" ]; then
echo "[Info] Performe a firmware update"
echo "[Info] Performing a firmware update"
# shellcheck disable=SC2012
rauc_filename=$(ls ${USB_CONFIG}/*.raucb | head -n 1)
@ -105,7 +106,7 @@ if ls ${USB_CONFIG}/*.raucb > /dev/null 2>&1 && [ "${UPTIME}" -ge "300" ]; then
echo "[Info] Firmware update success"
systemctl reboot
else
echo "[Error] Firmware update fails"
echo "[Error] Firmware update failed"
fi
fi

View File

@ -60,7 +60,7 @@ if [ -z "${SUPERVISOR_IMAGE_ID}" ]; then
# Pull failed, updater info might be corrupted or the release might have
# been removed from the container registry, delete the updater info
# to start from scratch on next try.
echo "[ERROR] Supervisor downloading failed."
echo "[ERROR] Supervisor download failed."
rm -f "${SUPERVISOR_DATA}/updater.json"
exit 1
fi