files/etc/uci-defaults/99-custom.sh
zhao bb0dc53925 更新 etc/uci-defaults/99-custom.sh
Signed-off-by: zhao <zhao@noreply.localhost>
2025-01-08 01:02:36 +08:00

24 lines
680 B
Bash
Raw Permalink 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
# 设置所有网口可访问网页终端
uci delete ttyd.@ttyd[0].interface
# 设置所有网口可连接 SSH
uci set dropbear.@dropbear[0].Interface=''
uci commit