mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 15:06:29 +00:00
Fix label name in test script (#66)
* Fix label name in test script * Update hassos-config
This commit is contained in:
parent
f8fa170e2a
commit
414b59ac4a
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user