From 279a4c4db15adb3156770d737aaa5bafd4741cbb Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 16 Feb 2020 11:46:41 +0100 Subject: [PATCH] Change uptime for offline update (#585) --- buildroot-external/rootfs-overlay/usr/sbin/hassos-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildroot-external/rootfs-overlay/usr/sbin/hassos-config b/buildroot-external/rootfs-overlay/usr/sbin/hassos-config index 08504c53b..0cf8abd4a 100755 --- a/buildroot-external/rootfs-overlay/usr/sbin/hassos-config +++ b/buildroot-external/rootfs-overlay/usr/sbin/hassos-config @@ -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