From fbbf645d62cda0b47ca117baef7d0c2f44879f0a Mon Sep 17 00:00:00 2001 From: zhao Date: Tue, 18 Mar 2025 16:46:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Mediatek=5Ffilogic=5Fpadav?= =?UTF-8?q?anonly.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- Mediatek_filogic_padavanonly.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Mediatek_filogic_padavanonly.sh diff --git a/Mediatek_filogic_padavanonly.sh b/Mediatek_filogic_padavanonly.sh new file mode 100644 index 0000000..e0fa12a --- /dev/null +++ b/Mediatek_filogic_padavanonly.sh @@ -0,0 +1,29 @@ +#!/bin/bash -e + +# private gitea +export gitea=https://git.kejizero.online + +# LAN +[ -n "$LAN" ] && export LAN=$LAN || export LAN=10.0.0.1 + +# openwrt - releases +git clone -b 2410 --single-branch --filter=blob:none https://github.com/padavanonly/immortalwrt-mt798x-24.10 immortalwrt-mt798x-24.10 openwrt + +if [ -d openwrt ]; then + cd openwrt + ./scripts/feeds update -a + ./scripts/feeds install -a +else + echo -e "${RED_COLOR}Failed to download source code${RES}" + exit 1 +fi + +############################################### +echo -e "\n${GREEN_COLOR}Patching ...${RES}\n" + +# scripts +curl -sO $gitea/openwrt/scripts/00-prepare_base.sh +chmod 0755 00-prepare_base.sh +bash 00-prepare_base.sh + +