From 03fd27518da513d139064209bcc2acb3373fdc34 Mon Sep 17 00:00:00 2001 From: John Doe Date: Tue, 19 Apr 2022 22:49:06 +0800 Subject: [PATCH] Fix: add r1s support to Lean's repo --- scripts/patches.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/patches.sh b/scripts/patches.sh index bdefeea..5c87ca9 100644 --- a/scripts/patches.sh +++ b/scripts/patches.sh @@ -79,3 +79,9 @@ sed -i '/uci commit luci/i\uci set luci.main.mediaurlbase="/luci-static/argon"' # remove the mirros from cn sed -i '/182.140.223.146/d;/\.cn\//d;/tencent/d' scripts/download.pl + +# add r1s support to Lean's repo +cd ~ && 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 >> r1s.diff +cd ~/lede && chmod +x target/linux/sunxi/base-files/etc/board.d/* && git apply ~/immortalwrt/r1s.diff \ No newline at end of file