summaryrefslogtreecommitdiff
path: root/openwrt/config_generation.sh
diff options
context:
space:
mode:
authorpennae <pennae.git@eno.space>2023-09-27 23:42:01 +0200
committerpennae <pennae.git@eno.space>2023-09-27 23:42:01 +0200
commitc7816b1fb3f0dcb16201976876d200202a1b41ff (patch)
treea54069593aef352aa44c699fe24fb52a6b03fb2b /openwrt/config_generation.sh
parent01e776a5c3d6e4929e9fd7c65e6c328519040810 (diff)
downloaddewclaw-c7816b1fb3f0dcb16201976876d200202a1b41ff.tar.gz
dewclaw-c7816b1fb3f0dcb16201976876d200202a1b41ff.tar.xz
dewclaw-c7816b1fb3f0dcb16201976876d200202a1b41ff.zip
diagnose failed-but-unrecovered deployment attemps
Diffstat (limited to 'openwrt/config_generation.sh')
-rw-r--r--openwrt/config_generation.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/openwrt/config_generation.sh b/openwrt/config_generation.sh
index a442863..8c3dde0 100644
--- a/openwrt/config_generation.sh
+++ b/openwrt/config_generation.sh
@@ -34,6 +34,11 @@ apply() {
printf "$RED>> %s$NORMAL\n" "$*"
}
+ if [ -e /overlay/upper.dead ]; then
+ log_err "previous failed deployment still needs recovery"
+ exit 1
+ fi
+
if ! rm -rf /overlay/upper.prev/ \
|| ! cp -al /overlay/upper/ /overlay/upper.prev/ \
|| ! rm -rf /overlay/upper.prev/etc/ \