mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-27 20:06:52 +00:00
Update hw_grafics_menu.sh
This commit is contained in:
parent
495bc24b2f
commit
ed3f2415bb
@ -25,43 +25,43 @@ initialize_cache
|
||||
# ==========================================================
|
||||
|
||||
while true; do
|
||||
OPTION=$(whiptail --title "$(translate "GPUs and Coral-TPU Menu")" --menu "$(translate "Select an option:")" 20 70 8 \
|
||||
"1" "$(translate "Add HW iGPU acceleration to an LXC")" \
|
||||
"2" "$(translate "Add Coral TPU to an LXC")" \
|
||||
"3" "$(translate "Install/Update Coral TPU on the Host")" \
|
||||
"4" "$(translate "Return to Main Menu")" 3>&1 1>&2 2>&3)
|
||||
OPTION=$(dialog --clear --backtitle "ProxMenux" --title "$(translate "GPUs and Coral-TPU Menu")" \
|
||||
--menu "\n$(translate "Select an option:")" 20 70 8 \
|
||||
"1" "$(translate "Add HW iGPU acceleration to an LXC")" \
|
||||
"2" "$(translate "Add Coral TPU to an LXC")" \
|
||||
"3" "$(translate "Install/Update Coral TPU on the Host")" \
|
||||
"4" "$(translate "Return to Main Menu")" \
|
||||
2>&1 >/dev/tty)
|
||||
|
||||
case $OPTION in
|
||||
1)
|
||||
show_proxmenux_logo
|
||||
msg_info2 "$(translate "Running script:") $(translate " HW iGPU acceleration LXC")..."
|
||||
bash <(curl -s "$REPO_URL/scripts/configure_igpu_lxc.sh")
|
||||
if [ $? -ne 0 ]; then
|
||||
clear
|
||||
show_proxmenux_logo
|
||||
msg_warn "$(translate "Operation cancelled.")"
|
||||
sleep 2
|
||||
fi
|
||||
;;
|
||||
2)
|
||||
show_proxmenux_logo
|
||||
msg_info2 "$(translate "Running script:") Coral TPU LXC..."
|
||||
bash <(curl -s "$REPO_URL/scripts/install_coral_lxc.sh")
|
||||
if [ $? -ne 0 ]; then
|
||||
clear
|
||||
show_proxmenux_logo
|
||||
msg_warn "$(translate "Operation cancelled.")"
|
||||
sleep 2
|
||||
fi
|
||||
;;
|
||||
3)
|
||||
show_proxmenux_logo
|
||||
msg_info2 "$(translate "Running script:") $(translate "Install/Update") Coral..."
|
||||
bash <(curl -s "$REPO_URL/scripts/install_coral_pve.sh")
|
||||
if [ $? -ne 0 ]; then
|
||||
clear
|
||||
show_proxmenux_logo
|
||||
msg_warn "$(translate "Operation cancelled.")"
|
||||
sleep 2
|
||||
fi
|
||||
;;
|
||||
|
||||
4) exec bash <(curl -s "$REPO_URL/scripts/menus/main_menu.sh") ;;
|
||||
*) exec bash <(curl -s "$REPO_URL/scripts/menus/main_menu.sh") ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user