~调整内核下载功能

~bug修复
~找回误删的防止dnsmasq重定向功能
This commit is contained in:
juewuy
2026-01-02 11:28:27 +08:00
parent b35f483652
commit 40a01428a5
5 changed files with 33 additions and 46 deletions

View File

@@ -47,3 +47,8 @@
line=$(grep -n 'nameserver' /etc/resolv.conf | awk -F: 'FNR==1{print $1}')
sed -i "$line i\nameserver 127.0.0.1 #shellcrash-dns-repair" /etc/resolv.conf >/dev/null 2>&1
}
#移除openwrt-dnsmasq的DNS重定向
[ "$(uci get dhcp.@dnsmasq[0].dns_redirect 2>/dev/null)" = 1 ] && {
uci del dhcp.@dnsmasq[0].dns_redirect
uci commit dhcp.@dnsmasq[0]
}