mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 12:16:53 +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
|
# Mostrar menú principal
|
||||||
show_menu() {
|
show_menu() {
|
||||||
while true; do
|
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" \
|
"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
|
case $OPTION in
|
||||||
1)
|
1)
|
||||||
@ -178,6 +179,14 @@ show_menu() {
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
2)
|
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
|
show_config_menu
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -188,6 +197,7 @@ show_menu() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Verificar dependencias
|
# Verificar dependencias
|
||||||
if ! command -v whiptail &> /dev/null; then
|
if ! command -v whiptail &> /dev/null; then
|
||||||
msg_info "$DEPS_INSTALLING"
|
msg_info "$DEPS_INSTALLING"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user