1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2025-12-20 02:18:37 +00:00

Change uptime for offline update (#585)

This commit is contained in:
Pascal Vizeli
2020-02-16 11:46:41 +01:00
committed by GitHub
parent a65db13c9e
commit 279a4c4db1

View File

@@ -96,7 +96,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 "180" ]; then
if ls ${USB_CONFIG}/*.raucb > /dev/null 2>&1 && [ "${UPTIME}" -ge "300" ]; then
echo "[Info] Performe a firmware update"
# shellcheck disable=SC2012