From 7fe2053d6bec0e9dc571d57701eabb01b97e8181 Mon Sep 17 00:00:00 2001 From: archandanime <36922812+archandanime@users.noreply.github.com> Date: Tue, 3 Oct 2023 09:53:07 +0700 Subject: [PATCH] Allow webserver to access (sdcard)/record/ at /opt/record/ with overlay rootfs --- SD_ROOT/wz_mini/etc/init.d/S01bind | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SD_ROOT/wz_mini/etc/init.d/S01bind b/SD_ROOT/wz_mini/etc/init.d/S01bind index 045a9e1..50ee93b 100644 --- a/SD_ROOT/wz_mini/etc/init.d/S01bind +++ b/SD_ROOT/wz_mini/etc/init.d/S01bind @@ -33,6 +33,9 @@ case "$1" in echo $CUSTOM_HOSTNAME > /opt/wz_mini/etc/hostname mount --bind /opt/wz_mini/etc/hostname /etc/hostname + + mkdir -p /opt/record + mount --bind /sdcard/record /opt/record ;; *) echo "Usage: $0 {start}"