Fix update script with uptime (#68)

This commit is contained in:
Pascal Vizeli 2018-07-02 22:51:54 +02:00 committed by GitHub
parent 8792d37402
commit 32ab05bd2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"