Files
gl/be9300.sh
wukongdaily fbdd395425 fix: 修复选项1缺少UI辅助插件安装及8080提示位置问题
- 修复 be3600/be6500/gl-inet.sh 选项1缺少 UI辅助插件安装
- 新增 show_completion_message() 函数,确保8080提示始终显示在脚本末尾
- 新增 Mudi 7 (GL-E5800) 机型支持
- 新增 BE9300 机型支持
- 更新 main.sh 自动检测和手动菜单
2026-06-22 09:07:07 +08:00

131 lines
3.3 KiB
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
# GL-iNet BE9300 一键iStoreOS风格化脚本
# by @wukongdaily
HTTP_HOST="https://cafe.cpolar.cn/wkdaily/gl/raw/branch/main"
LIB_COMMON="/tmp/lib-common.sh"
# 下载并加载公共库
load_common_lib() {
if [ ! -f "$LIB_COMMON" ]; then
wget -O "$LIB_COMMON" "$HTTP_HOST/lib/lib-common.sh" 2>/dev/null || {
echo "下载公共库失败"
exit 1
}
fi
. "$LIB_COMMON"
}
# BE9300 专用64位架构配置
add_arch_64bit() {
if ! wget -O /etc/opkg/arch.conf $HTTP_HOST/64bit/arch.conf; then
echo "下载 arch.conf 失败,脚本终止。"
exit 1
fi
}
# 安装应用商店和主题
install_istore_os_style() {
do_install_argon_skin
opkg install luci-i18n-ttyd-zh-cn
opkg install openssh-sftp-server
do_install_filetransfer
FILE_PATH="/etc/openwrt_release"
NEW_DESCRIPTION="Openwrt like iStoreOS Style by wukongdaily"
CONTENT=$(cat $FILE_PATH)
UPDATED_CONTENT=$(echo "$CONTENT" | sed "s/DISTRIB_DESCRIPTION='[^']*'/DISTRIB_DESCRIPTION='$NEW_DESCRIPTION'/")
echo "$UPDATED_CONTENT" >$FILE_PATH
}
# 首页和网络向导
do_quickstart() {
download_lib_quickstart
download_luci_quickstart
opkg install /tmp/ipk_downloads/*.ipk
do_install_new_quickstart
}
# ============================================================================
# 主程序
# ============================================================================
load_common_lib
while true; do
clear
gl_name=$(get_router_name)
result="GL-iNet Be9300 一键iStoreOS风格化(新版)"
echo "***********************************************************************"
echo "* 一键安装工具箱(for GL-iNet BE9300) by @wukongdaily"
echo "**********************************************************************"
echo "*******支持的机型列表***************************************************"
green "*******GL-iNet BE-9300********"
green "请确保您的固件版本在4.7.2以上"
echo
light_magenta " 1. $result"
echo
light_magenta " 2. 安装argon紫色主题"
echo
light_magenta " 3. 单独安装iStore商店"
echo
light_magenta " 4. 隐藏首页无用元素"
echo
light_magenta " 5. 设置风扇工作温度"
echo
light_magenta " 6. 安装个性化UI辅助插件(by VMatrices)"
echo
light_magenta " 7. 安装高级卸载插件"
echo
light_magenta " 8. 安装新首页"
echo
light_magenta " 9. 恢复出厂设置"
echo
echo " Q. 退出本程序"
echo
read -p "请选择一个选项: " choice
case $choice in
1)
install_istore_os_style
setup_base_init
do_istore
do_quickstart
advanced_uninstall
do_install_ui_helper
show_completion_message
;;
2)
do_install_argon_skin
;;
3)
do_istore
;;
4)
hide_ui_elements
;;
5)
set_glfan_temp
;;
6)
do_install_ui_helper
;;
7)
advanced_uninstall
;;
8)
do_install_new_quickstart
;;
9)
recovery
;;
q | Q)
echo "退出"
exit 0
;;
*)
echo "无效选项,请重新选择。"
;;
esac
read -p "按 Enter 键继续..."
done