From 58a15067f02d30b0a29df7849c75525fa477c6cd Mon Sep 17 00:00:00 2001 From: John Doe Date: Tue, 15 Nov 2022 07:38:59 +0800 Subject: [PATCH] fix(ugly): read-only issue --- scripts/patches.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/patches.sh b/scripts/patches.sh index 5c2a621..20edfc7 100644 --- a/scripts/patches.sh +++ b/scripts/patches.sh @@ -95,6 +95,9 @@ done # set default theme to argon sed -i '/uci commit luci/i\uci set luci.main.mediaurlbase="/luci-static/argon"' `find package -type f -path '*/default-settings/files/*-default-settings'` +## ugly fix of the read-only issue +sed -i '3 i sed -i "/^exit.*/i\\/bin\\/mount -o remount,rw /" /etc/rc.local' `find package -type f -path '*/default-settings/files/*-default-settings'` + # add r1s support to Lean's repo if [[ $DEVICE == 'r1s' ]]; then cd ~ && rm -rf immortalwrt/ && git clone -b openwrt-21.02 https://github.com/immortalwrt/immortalwrt && cd immortalwrt