diff options
Diffstat (limited to 'openwrt')
-rw-r--r-- | openwrt/config_generation.sh | 5 |
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/ \ |