From a06205c9325e2bdce568ebe6325be441a8839ea9 Mon Sep 17 00:00:00 2001 From: zhao Date: Wed, 8 Jan 2025 00:59:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20etc/uci-defaults/01-pppoe.?= =?UTF-8?q?sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- etc/uci-defaults/01-pppoe.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 etc/uci-defaults/01-pppoe.sh diff --git a/etc/uci-defaults/01-pppoe.sh b/etc/uci-defaults/01-pppoe.sh new file mode 100644 index 0000000..784384c --- /dev/null +++ b/etc/uci-defaults/01-pppoe.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +# PPPoE 配置 +uci set network.wan.proto=pppoe +uci set network.wan.username='t536020670645' # 替换为实际的用户名 +uci set network.wan.password='165445' # 替换为实际的密码 +uci commit network + +# 默认wan口防火墙打开 +uci set firewall.@zone[1].input='ACCEPT' +uci commit firewall + +# 设置主机名映射,解决安卓原生TV首次连不上网的问题 +uci add dhcp domain +uci set "dhcp.@domain[-1].name=time.android.com" +uci set "dhcp.@domain[-1].ip=203.107.6.88" +uci commit dhcp \ No newline at end of file