* Update build-all.sh * Delete ovf-create.sh * Update patches.sh * Update hdd-image.sh * Create .travis.yml * Update hdd-image.sh * Update hdd-image.sh * Update hdd-image.sh * Update hdd-image.sh * Update ota.sh * Update post-build.sh * Update post-image.sh * Update rauc.sh * Update rootfs-layer.sh * Update hassos-cli * Update hassos-supervisor * Update hassos-config * Update hassos-apparmor * Update hassos-expand * Update hassos-persists-journald * Update hassos-rate * Update hassos-hook.sh * Update hassos-hook.sh * Rename uboot-boot.sh to uboot-boot.ush * Rename uboot-boot.sh to uboot-boot.ush * Update hassos-hook.sh * Rename uboot-boot.sh to uboot-boot.ush * Rename uboot-boot.sh to uboot-boot.ush * Update hassos-hook.sh * Update odroid_c2_defconfig * Update rpi0_w_defconfig * Update rpi2_defconfig * Update rpi3_64_defconfig * Update rpi3_defconfig * Update rpi_defconfig * Update tinker_defconfig * Update enter.sh * Update .travis.yml
29 lines
368 B
Bash
Executable File
29 lines
368 B
Bash
Executable File
#!/bin/sh
|
|
# shellcheck disable=SC2112
|
|
set -e
|
|
|
|
|
|
function mark_good() {
|
|
rauc status mark-good
|
|
exit 0
|
|
}
|
|
|
|
function mark_bad() {
|
|
rauc status mark-bad
|
|
systemctl reboot
|
|
}
|
|
|
|
#### Check system ####
|
|
|
|
# Docker state
|
|
if systemctl -q is-failed docker; then
|
|
mark_bad
|
|
fi
|
|
|
|
# Docker state
|
|
if systemctl -q is-failed hassos-supervisor; then
|
|
mark_bad
|
|
fi
|
|
|
|
mark_good
|