From 7eddbb6c183cab48ee340c361eaa6689f01fa230 Mon Sep 17 00:00:00 2001 From: archandanime <36922812+archandanime@users.noreply.github.com> Date: Tue, 3 Oct 2023 20:39:21 +0700 Subject: [PATCH] fix S11configbackup is not run when not using overlay rootfs --- SD_ROOT/wz_mini/etc/init.d/S11configbackup | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SD_ROOT/wz_mini/etc/init.d/S11configbackup b/SD_ROOT/wz_mini/etc/init.d/S11configbackup index 157c07e..2fc3270 100644 --- a/SD_ROOT/wz_mini/etc/init.d/S11configbackup +++ b/SD_ROOT/wz_mini/etc/init.d/S11configbackup @@ -8,7 +8,8 @@ . /opt/wz_mini/wz_mini.conf if df / | grep -q overlayfs; then -mount --bind /sdcard /opt # Temporarily let this script do its operations as if SD Card is mounted as /opt + mount --bind /sdcard /opt # Temporarily let this script do its operations as if SD Card is mounted as /opt +fi case "$1" in start) @@ -59,6 +60,7 @@ case "$1" in exit 1 ;; esac -umount /opt +if df / | grep -q overlayfs; then + umount /opt fi