new install
This commit is contained in:
47
install-menu.sh
Normal file
47
install-menu.sh
Normal file
@@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Remember that this menu uses this apt package "dialog"
|
||||
|
||||
HEIGHT=35
|
||||
WIDTH=80
|
||||
CHOICE_HEIGHT=5
|
||||
BACKTITLE="Martin BSPwm DTE - The installation"
|
||||
TITLE="Martin DTE - BSPwm installation"
|
||||
MENU="Choose you system from the following options:"
|
||||
|
||||
OPTIONS=(1 "AMD Driver"
|
||||
2 "AMD Driver + NVIDIA"
|
||||
3 "Intel Driver"
|
||||
4 "Intel + NVIDIA Driver"
|
||||
5 "Virtual Machine - New SUPER KEY to ALT KEY"
|
||||
6 "Do nothing and Reboot")
|
||||
|
||||
CHOICE=$(dialog --clear \
|
||||
--backtitle "$BACKTITLE" \
|
||||
--title "$TITLE" \
|
||||
--menu "$MENU" \
|
||||
$HEIGHT $WIDTH $CHOICE_HEIGHT \
|
||||
"${OPTIONS[@]}" \
|
||||
2>&1 >/dev/tty)
|
||||
|
||||
clear
|
||||
case $CHOICE in
|
||||
1)
|
||||
sudo apt install -y amd64-microcode && systemctl reboot
|
||||
;;
|
||||
2)
|
||||
sudo apt install -y amd64-microcode nvidia-detect nvidia-driver && systemctl reboot
|
||||
;;
|
||||
3)
|
||||
sudo apt install -y intel-microcode && systemctl reboot
|
||||
;;
|
||||
4)
|
||||
sudo apt install -y intel-microcode nvidia-detect nvidia-driver && systemctl reboot
|
||||
;;
|
||||
5)
|
||||
. ~/bspwm-install-ma-dte/install-scripts/vm-install-mics.sh && systemctl reboot
|
||||
;;
|
||||
6)
|
||||
systemctl reboot
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user