Change uptime for offline update (#585)

This commit is contained in:
Pascal Vizeli 2020-02-16 11:46:41 +01:00 committed by GitHub
parent a65db13c9e
commit 279a4c4db1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ fi
##
# Firmware update / Only USB
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"
# shellcheck disable=SC2012