From 976e8e5e753b07fa83ba886c3839c55d40ebcc0c Mon Sep 17 00:00:00 2001 From: John Doe Date: Wed, 28 Sep 2022 03:41:24 +0800 Subject: [PATCH] fix --- scripts/patches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/patches.sh b/scripts/patches.sh index 2e19f00..6b4346e 100644 --- a/scripts/patches.sh +++ b/scripts/patches.sh @@ -98,7 +98,7 @@ sed -i '/uci commit luci/i\uci set luci.main.mediaurlbase="/luci-static/argon"' # add r1s support to Lean's repo if [[ $DEVICE == 'r1s' ]]; then - cd ~ && 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 git log --grep r1s -i | grep '^commit ' | head -n -2 | cut -d' ' -f2 | tac | xargs git show | sed '0,/UENV/s//ATF/' > r1s.diff git show 124116564e8a6081e79cb2e87b0d87b2af99c583 632c4c91e7640a354dc421fa324fd705b734252d 7fb1b00f5f6214bf7a29d3781d260a7e7c8547c9 >> r1s.diff cd ~/lede && chmod +x target/linux/sunxi/base-files/etc/board.d/* && git apply ~/immortalwrt/r1s.diff