files/etc/uci-defaults/01-pppoe.sh
zhao a06205c932 添加 etc/uci-defaults/01-pppoe.sh
Signed-off-by: zhao <zhao@noreply.localhost>
2025-01-08 00:59:24 +08:00

17 lines
513 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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