Update menu.sh

This commit is contained in:
MacRimi 2025-01-12 13:08:32 +01:00 committed by GitHub
parent 65d998ecd2
commit 7db4cf6d24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

14
menu.sh
View File

@ -164,9 +164,10 @@ show_config_menu() {
# Mostrar menú principal
show_menu() {
while true; do
OPTION=$(whiptail --title "$MENU_TITLE" --menu "$SELECT_OPTION" 15 60 2 \
OPTION=$(whiptail --title "$MENU_TITLE" --menu "$SELECT_OPTION" 15 60 3 \
"1" "$OPTION_1" \
"2" "$OPTION_2" 3>&1 1>&2 2>&3)
"2" "$OPTION_2" \
"3" "$OPTION_3" 3>&1 1>&2 2>&3)
case $OPTION in
1)
@ -178,6 +179,14 @@ show_menu() {
fi
;;
2)
msg_info "$NETWORK_REPAIR_RUNNING"
if wget -qO- "$REPO_URL/scripts/repair_network.sh" | bash; then
msg_ok "$NETWORK_REPAIR_SUCCESS"
else
msg_error "$NETWORK_REPAIR_ERROR"
fi
;;
3)
show_config_menu
;;
*)
@ -188,6 +197,7 @@ show_menu() {
done
}
# Verificar dependencias
if ! command -v whiptail &> /dev/null; then
msg_info "$DEPS_INSTALLING"