mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-25 22:16:30 +00:00
Change uptime for offline update (#585)
This commit is contained in:
parent
a65db13c9e
commit
279a4c4db1
@ -96,7 +96,7 @@ fi
|
|||||||
##
|
##
|
||||||
# Firmware update / Only USB
|
# Firmware update / Only USB
|
||||||
UPTIME=$(awk '{printf "%0.f", $1}' /proc/uptime)
|
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"
|
echo "[Info] Performe a firmware update"
|
||||||
|
|
||||||
# shellcheck disable=SC2012
|
# shellcheck disable=SC2012
|
||||||
|
Loading…
x
Reference in New Issue
Block a user