mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 19:16:29 +00:00
restore configs
This commit is contained in:
parent
634956ff45
commit
13cf51f7cb
@ -326,6 +326,10 @@ if [ $RESINHUP_EXIT -eq 0 ] || [ $RESINHUP_EXIT -eq 2 ] || [ $RESINHUP_EXIT -eq
|
|||||||
RESINHUP_ENDTIME=$(date +%s)
|
RESINHUP_ENDTIME=$(date +%s)
|
||||||
log "Update suceeded in $(($RESINHUP_ENDTIME - $RESINHUP_STARTTIME)) seconds."
|
log "Update suceeded in $(($RESINHUP_ENDTIME - $RESINHUP_STARTTIME)) seconds."
|
||||||
|
|
||||||
|
# Restore config
|
||||||
|
cp /mnt/boot/config.json.hup.old /mnt/boot/config.json || true
|
||||||
|
cp /mnt/boot/system-connections/resin-sample.hup.old /mnt/boot/config.json || true
|
||||||
|
|
||||||
# Everything is fine - Reboot
|
# Everything is fine - Reboot
|
||||||
if [ "$NOREBOOT" == "no" ]; then
|
if [ "$NOREBOOT" == "no" ]; then
|
||||||
log "Rebooting board in 5 seconds..."
|
log "Rebooting board in 5 seconds..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user