* Use wait on network to delay the startup * Update nm.conf * Create nm.conf * Update hassos-supervisor.service * Rename hassos.conf to docker.conf * Create hassos.conf * Create hassos.conf * Update hassos.conf * aply patch * Mark only failed * Fix start order
28 lines
340 B
Bash
Executable File
28 lines
340 B
Bash
Executable File
#!/bin/sh
|
|
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
|