mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Update menu.sh
This commit is contained in:
parent
65d998ecd2
commit
7db4cf6d24
14
menu.sh
14
menu.sh
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user