mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 15:06:29 +00:00
Fix update script with uptime (#68)
This commit is contained in:
parent
8792d37402
commit
32ab05bd2e
@ -48,7 +48,7 @@ fi
|
|||||||
|
|
||||||
##
|
##
|
||||||
# Firmware update
|
# Firmware update
|
||||||
UPTIME=$(awk '{print $1}' /proc/uptime)
|
UPTIME=$(awk '{printf "%0.f", $1}' /proc/uptime)
|
||||||
if ls /mnt/config/*.raucb > /dev/null && [ ${UPTIME} -ge 180 ]; then
|
if ls /mnt/config/*.raucb > /dev/null && [ ${UPTIME} -ge 180 ]; then
|
||||||
echo "[Info] Performe a firmware update"
|
echo "[Info] Performe a firmware update"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user