mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-24 13:36:31 +00:00
Fix update script with uptime (#68)
This commit is contained in:
parent
8792d37402
commit
32ab05bd2e
@ -48,7 +48,7 @@ fi
|
||||
|
||||
##
|
||||
# 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
|
||||
echo "[Info] Performe a firmware update"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user