From 414b59ac4ac27de78ff86c3defae367cd0c5e3df Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 2 Jul 2018 21:24:05 +0200 Subject: [PATCH] Fix label name in test script (#66) * Fix label name in test script * Update hassos-config --- buildroot-external/rootfs-overlay/usr/sbin/hassos-config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildroot-external/rootfs-overlay/usr/sbin/hassos-config b/buildroot-external/rootfs-overlay/usr/sbin/hassos-config index 22dbef28e..9493642dd 100755 --- a/buildroot-external/rootfs-overlay/usr/sbin/hassos-config +++ b/buildroot-external/rootfs-overlay/usr/sbin/hassos-config @@ -1,6 +1,6 @@ #!/bin/sh -if ! findfs LABEL="config" > /dev/null; then +if ! findfs LABEL="CONFIG" > /dev/null; then echo "[Warning] No config partition found" exit 0 fi @@ -48,7 +48,8 @@ fi ## # Firmware update -if ls /mnt/config/*.raucb > /dev/null; then +UPTIME=$(awk '{print $1}' /proc/uptime) +if ls /mnt/config/*.raucb > /dev/null && [ ${UPTIME} -ge 180 ]; then echo "[Info] Performe a firmware update" rauc_filename=$(ls /mnt/config/*.raucb | head -n 1)