From 115ad15b3202af417fe86ff3aa388716d1c34c3b Mon Sep 17 00:00:00 2001 From: zhao Date: Fri, 14 Feb 2025 00:15:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20ZeroWrt/02-custom.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- ZeroWrt/02-custom.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ZeroWrt/02-custom.sh diff --git a/ZeroWrt/02-custom.sh b/ZeroWrt/02-custom.sh new file mode 100644 index 0000000..8bd247e --- /dev/null +++ b/ZeroWrt/02-custom.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# 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 \ No newline at end of file