Files
gl/be6500.sh
wukongdaily d36265dfd9 fix: 修复BE系列脚本缺少架构配置调用
- be3600/be6500/be9300.sh 选项1添加 add_arch_64bit() 调用
- 确保优先使用64位架构安装包,保证安装兼容性
2026-06-22 11:31:00 +08:00

132 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 BE6500 一键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"
}
# BE6500 专用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 Be6500 一键iStoreOS风格化(新版)"
echo "***********************************************************************"
echo "* 一键安装工具箱(for gl-inet be6500) by @wukongdaily"
echo "**********************************************************************"
echo "*******支持的机型列表***************************************************"
green "*******GL-iNet BE-6500********"
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)
add_arch_64bit
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