From d0649bb749be6fda3324614889ca63fd340a4462 Mon Sep 17 00:00:00 2001 From: wukongdaily <2666180@gmail.com> Date: Tue, 19 Mar 2024 13:33:35 +0800 Subject: [PATCH] Update gl-inet.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1、兼容处理首页“已联网” 的UI问题,opkg将原厂配置做了调整 2、兼容处理首页不显示终端的问题。采用主动安装ttyd方式。 原本luci-app-quickstart 是依赖ttyd终端的,后来改版后不依赖了。因此需要主动安装。 --- gl-inet.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gl-inet.sh b/gl-inet.sh index 395e965..b5179b3 100755 --- a/gl-inet.sh +++ b/gl-inet.sh @@ -16,14 +16,18 @@ setup_base_init() { ## 设置防火墙wan 打开,方便主路由访问 uci set firewall.@zone[1].input='ACCEPT' uci commit firewall + # 解决首页“已联网”的UI问题 + recovery_opkg_settings } ## 安装应用商店和主题 install_istore_os_style() { ##设置Argon 紫色主题 do_install_argon_skin - #安装首页风格 + #安装首页风格,增加首页终端图标 + opkg install ttyd is-opkg install luci-app-quickstart + is-opkg install luci-i18n-quickstart-zh-cn is-opkg install 'app-meta-ddnsto' #安装首页需要的文件管理功能 is-opkg install 'app-meta-linkease' @@ -302,7 +306,6 @@ recovery_opkg_settings() { echo "Router name does not contain '3000' 6000 or '2500'." ;; esac - echo "Tips: 重启路由器后才能完全生效" } do_luci_app_adguardhome() {