fix(ugly): read-only issue

This commit is contained in:
John Doe
2022-11-15 07:38:59 +08:00
parent 4af0858096
commit 58a15067f0

View File

@@ -95,6 +95,9 @@ done
# set default theme to argon # 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'` 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 # add r1s support to Lean's repo
if [[ $DEVICE == 'r1s' ]]; then if [[ $DEVICE == 'r1s' ]]; then
cd ~ && rm -rf immortalwrt/ && git clone -b openwrt-21.02 https://github.com/immortalwrt/immortalwrt && cd immortalwrt cd ~ && rm -rf immortalwrt/ && git clone -b openwrt-21.02 https://github.com/immortalwrt/immortalwrt && cd immortalwrt