mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/Mapleawaa/PVE-Tools-9.git
synced 2026-09-20 08:03:35 +08:00
Unify all menus on lib/menu.sh (run_menu), harden GPU/GRUB writes with two-tier confirms and markers, fix remote/self-update to Releases assets, and close real CI quality gates with SHA256SUMS. Bump to 11.0.0 / Liino.
24 lines
599 B
Bash
24 lines
599 B
Bash
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
# Copyright (C) 2026 Ciriu Networks
|
|
|
|
menu_sources_updates() {
|
|
run_menu "软件源与更新" menu_sources_updates_render menu_sources_updates_dispatch "0-3"
|
|
}
|
|
|
|
menu_sources_updates_render() {
|
|
show_menu_option "1" "更换软件源"
|
|
show_menu_option "2" "更新系统软件包"
|
|
show_menu_option "3" "${YELLOW}PVE 8.x 升级到 PVE 9.x${NC}"
|
|
}
|
|
|
|
menu_sources_updates_dispatch() {
|
|
case "$1" in
|
|
1) change_sources ;;
|
|
2) update_system ;;
|
|
3) pve8_to_pve9_upgrade ;;
|
|
*) return 1 ;;
|
|
esac
|
|
return 0
|
|
}
|