From ad026fc25c589e9d1f8647e381ab0f1f8784518b Mon Sep 17 00:00:00 2001 From: MapleCool <37971849+pmkol@users.noreply.github.com> Date: Wed, 12 Jun 2024 01:35:59 +0800 Subject: [PATCH] kmod: disabled proxy --- openwrt/scripts/10-customize-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt/scripts/10-customize-config.sh b/openwrt/scripts/10-customize-config.sh index 45ba6a570..48755f61f 100644 --- a/openwrt/scripts/10-customize-config.sh +++ b/openwrt/scripts/10-customize-config.sh @@ -30,6 +30,6 @@ sed -i 's/mirrors.pku.edu.cn/mirrors.aliyun.com/g' package/new/default-settings/ sed -i '/# opkg mirror/a case $(uname -m) in\n x86_64)\n echo -e '\''src/gz immortalwrt_luci https://mirrors.vsean.net/openwrt/releases/packages-23.05/x86_64/luci\nsrc/gz immortalwrt_packages https://mirrors.vsean.net/openwrt/releases/packages-23.05/x86_64/packages'\'' >> /etc/opkg/distfeeds.conf\n ;;\n aarch64)\n echo -e '\''src/gz immortalwrt_luci https://mirrors.vsean.net/openwrt/releases/packages-23.05/aarch64_generic/luci\nsrc/gz immortalwrt_packages https://mirrors.vsean.net/openwrt/releases/packages-23.05/aarch64_generic/packages'\'' >> /etc/opkg/distfeeds.conf\n ;;\n *)\n echo "Warning: This system architecture is not supported."\n ;;\nesac' package/new/default-settings/default/zzz-default-settings sed -i '/# opkg mirror/a echo -e '\''untrusted comment: Public usign key for 23.05 release builds\\nRWRoKXAGS4epF5gGGh7tVQxiJIuZWQ0geStqgCkwRyviQCWXpufBggaP'\'' > /etc/opkg/keys/682970064b87a917' package/new/default-settings/default/zzz-default-settings # comment out the following line to use kmod proxy -sed -i 's#raw.cooluc.com/sbwml/kmod-#raw.githubusercontent.com/sbwml/kmod-#g' package/new/default-settings/default/zzz-default-settings +sed -i 's#raw.gitmirror.com/sbwml/kmod-#raw.githubusercontent.com/sbwml/kmod-#g' package/new/default-settings/default/zzz-default-settings # comment out the following line to restore the full description sed -i '/# timezone/i sed -i "s/\\(DISTRIB_DESCRIPTION=\\).*/\\1'\''OpenWrt $(sed -n "s/DISTRIB_DESCRIPTION='\''OpenWrt \\([^ ]*\\) .*/\\1/p" /etc/openwrt_release)'\'',/" /etc/openwrt_release\nsource /etc/openwrt_release \&\& sed -i -e "s/distversion\\s=\\s\\".*\\"/distversion = \\"$DISTRIB_ID $DISTRIB_RELEASE ($DISTRIB_REVISION)\\"/g" -e '\''s/distname = .*$/distname = ""/g'\'' /usr/lib/lua/luci/version.lua\nsed -i "s/luciname = \\".*\\"/luciname = \\"LuCI openwrt-23.05\\"/g" /usr/lib/lua/luci/version.lua\nsed -i "s/luciversion = \\".*\\"/luciversion = \\"v'$(date +%Y%m%d)'\\"/g" /usr/lib/lua/luci/version.lua\necho "export const revision = '\''v'$(date +%Y%m%d)'\'\'', branch = '\''LuCI openwrt-23.05'\'';" > /usr/share/ucode/luci/version.uc\n/etc/init.d/rpcd restart\n' package/new/default-settings/default/zzz-default-settings