From 84550fe922a518a4868323278abafc14fd21c73a Mon Sep 17 00:00:00 2001 From: zhao Date: Mon, 14 Apr 2025 11:35:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=2003=5Fcustom=5Fsettings=5Fx?= =?UTF-8?q?86.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- 03_custom_settings_x86.sh | 64 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 03_custom_settings_x86.sh diff --git a/03_custom_settings_x86.sh b/03_custom_settings_x86.sh new file mode 100644 index 0000000..0aaed48 --- /dev/null +++ b/03_custom_settings_x86.sh @@ -0,0 +1,64 @@ +#!/bin/bash + +# distfeeds.conf +mkdir -p files/etc/opkg +cat > files/etc/opkg/distfeeds.conf < files/usr/bin/AdGuardHome + +chmod +x files/usr/bin/AdGuardHome + +mkdir -p files/etc/openclash/core + +CLASH_META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-amd64.tar.gz" +GEOIP_URL="https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat" +GEOSITE_URL="https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat" + +wget -qO- $CLASH_META_URL | tar xOvz > files/etc/openclash/core/clash_meta +wget -qO- $GEOIP_URL > files/etc/openclash/GeoIP.dat +wget -qO- $GEOSITE_URL > files/etc/openclash/GeoSite.dat + +chmod +x files/etc/openclash/core/clash* + +# ZeroWrt选项菜单 +mkdir -p files/bin +curl -L -o files/bin/ZeroWrt https://git.kejizero.online/zhao/files/raw/branch/main/bin/ZeroWrt +chmod +x files/bin/ZeroWrt +mkdir -p files/root +curl -L -o files/root/version.txt https://git.kejizero.online/zhao/files/raw/branch/main/bin/version.txt +chmod +x files/root/version.txt + +# Adguardhome设置 +mkdir -p files/etc +curl -L -o files/etc/AdGuardHome-dnslist.yaml https://git.kejizero.online/zhao/files/raw/branch/main/etc/AdGuardHome-dnslist.yaml +chmod +x files/etc/AdGuardHome-dnslist.yaml +curl -L -o files/etc/AdGuardHome-mosdns.yaml https://git.kejizero.online/zhao/files/raw/branch/main/etc/AdGuardHome-mosdns.yaml +chmod +x files/etc/AdGuardHome-mosdns.yaml +curl -L -o files/etc/AdGuardHome-dns.yaml https://git.kejizero.online/zhao/files/raw/branch/main/etc/AdGuardHome-dns.yaml +chmod +x files/etc/AdGuardHome-dns.yaml + +# default_set +mkdir -p files/etc/config +curl -L -o files/etc/config/default_dhcp.conf https://raw.githubusercontent.com/oppen321/ZeroWrt/refs/heads/openwrt-24.10/files/default_dhcp.conf +curl -L -o files/etc/config/default_mosdns https://raw.githubusercontent.com/oppen321/ZeroWrt/refs/heads/openwrt-24.10/files/default_mosdns +curl -L -o files/etc/config/default_smartdns https://raw.githubusercontent.com/oppen321/ZeroWrt/refs/heads/openwrt-24.10/files/default_smartdns +curl -L -o files/etc/config/default_AdGuardHome https://raw.githubusercontent.com/oppen321/ZeroWrt/refs/heads/openwrt-24.10/files/default_AdGuardHome +curl -L -o files/etc/config/default_passwall https://raw.githubusercontent.com/oppen321/ZeroWrt/refs/heads/openwrt-24.10/files/default_passwall +curl -L -o files/etc/config/default_openclash https://raw.githubusercontent.com/oppen321/ZeroWrt/refs/heads/openwrt-24.10/files/default_openclash +chmod +x files/etc/config/default_dhcp.conf +chmod +x files/etc/config/default_mosdns +chmod +x files/etc/config/default_smartdns +chmod +x files/etc/config/default_AdGuardHome +chmod +x files/etc/config/default_passwall +chmod +x files/etc/config/default_openclash