Set hassos supervisor to rauc (#55)

* Set hassos supervisor to rauc

* Update post-install

* Update hassos-config
This commit is contained in:
Pascal Vizeli
2018-06-29 15:23:49 +02:00
committed by GitHub
parent 8dd8816e4e
commit dde6d8f806
3 changed files with 7 additions and 3 deletions

View File

@@ -52,7 +52,12 @@ if ls /mnt/config/*.raucb > /dev/null; then
echo "[Info] Performe a firmware update"
rauc_filename=$(ls /mnt/config/*.raucb | head -n 1)
rauc install /mnt/config/$rauc_filename
if rauc install /mnt/config/$rauc_filename; then
echo "[Info] Firmware update success"
systemctl reboot
else
echo "[Error] Firmware update fails"
fi
fi
# Cleanup config partition