new setup

This commit is contained in:
ITmail-dk
2022-01-03 12:43:16 +01:00
parent cd3323a66a
commit e8555fe0b9
2 changed files with 17 additions and 11 deletions

View File

@@ -1,25 +1,31 @@
#!/bin/bash
PS3='Choose menu 1, 2, 3, Reboot, Exit.:'
smenu=("1" "2" "3" "Reboot" "Exit")
select smenu in "${smenuc[@]}"; do
PS3='Choose a menu option :'
smenu=("Install AMD Driver" "Install AMD Driver + NVIDIA" "Install Intel Driver" "Install Intel + NVIDIA Driver" "VM - Copy New SUPER KEY to ALT" "Reboot" "Exit")
select smenuc in "${smenu[@]}"; do
case $smenuc in
"1")
echo "Nr. 1"
sudo apt install -y amd64-microcode
# optionally call a function or run some code here
;;
"2")
echo "Nr. 2"
sudo apt install -y amd64-microcode nvidia-detect nvidia-driver
# optionally call a function or run some code here
;;
"3")
echo "VM Copy Keys..."
. copy-vm-keys.sh
break
sudo apt install -y intel-microcode
# optionally call a function or run some code here
;;
"Reboot")
"4")
sudo apt install -y intel-microcode nvidia-detect nvidia-driver
# optionally call a function or run some code here
;;
"5")
. ~/bspwm-install-ma-dte/copy-vm-keys.sh
;;
"6")
sudo reboot
;;
"Quit")
"7")
exit
;;
*) echo "Invalid option. $REPLY";;