Fix label name in test script (#66)

* Fix label name in test script

* Update hassos-config
This commit is contained in:
Pascal Vizeli 2018-07-02 21:24:05 +02:00 committed by GitHub
parent f8fa170e2a
commit 414b59ac4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
if ! findfs LABEL="config" > /dev/null; then if ! findfs LABEL="CONFIG" > /dev/null; then
echo "[Warning] No config partition found" echo "[Warning] No config partition found"
exit 0 exit 0
fi fi
@ -48,7 +48,8 @@ fi
## ##
# Firmware update # 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" echo "[Info] Performe a firmware update"
rauc_filename=$(ls /mnt/config/*.raucb | head -n 1) rauc_filename=$(ls /mnt/config/*.raucb | head -n 1)