Fix update script with uptime (#68)

This commit is contained in:
Pascal Vizeli 2018-07-02 22:51:54 +02:00 committed by Pascal Vizeli
parent b50df06358
commit 5b68cf097a

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"