Votre Nom 6 years ago
parent
commit
75e1349ee8
1 changed files with 5 additions and 3 deletions
  1. 5 3
      setup_amd.sh

+ 5 - 3
setup_amd.sh

@@ -59,6 +59,8 @@ echo -e -n "\u255D\e[0m"
 echo
 echo
 if [ $lsb_v = "18.04" ]; then  echo -e "\e[97m    Ubuntu 18.04 \e[0m\e[97m";fi
+if [ $lsb_v = "18.10" ]; then  echo -e "\e[97m    Ubuntu 18.10 \e[0m\e[97m";fi
+
 if [ $ROCM_ = "YES"  ]; then echo -e "\e[94m   AMD DRIVER + ROCm Compute firmware \e[0m\e[97m";fi
 if [ $ROCM_ = "NO"  ]; then echo -e "\e[94m    AMD GPU PRO Drivers $amd_driver_v\e[0m\e[97m";fi
 if [ $ETHMine = "YES" ]; then echo -e "\e[97m    +\e[91m Etherminer \e[0m\e[97m";fi
@@ -89,12 +91,12 @@ sudo sed -i -e "s/quiet splash/text/g" /etc/default/grub
 sudo sed -i -e 's#GRUB_CMDLINE_LINUX=""#GRUB_CMDLINE_LINUX="amddgpu.vm_fragment_size=9"#g' /etc/default/grub
 sudo update-grub2
 sudo apt dist-upgrade -y
-if ! [ $lsb_v = "18.04" ];then sudo apt-get remove linux-image-4.4.0-116* linux-headers-4.4.0-116* -y ;fi
+if ! [[ $lsb_v = "18.04" || $lsb_v = "18.10" ]];then sudo apt-get remove linux-image-4.4.0-116* linux-headers-4.4.0-116* -y ;fi
 sudo apt install ethereum git screen htop curl ntp pv git cmake libleveldb-dev libjsoncpp-dev \
 build-essential libcurl4-gnutls-dev libboost-all-dev libgmp-dev \
 libreadline-dev libmicrohttpd-dev libjansson-dev libgmp-dev libssl-dev unzip python-nfqueue python-scapy mesa-common-dev -y
-if ! [ $lsb_v = "18.04" ];then sudo apt install libcryptopp-dev -y ;fi
-if ! [ $lsb_v = "18.04" ];then sudo apt-get install --install-recommends xserver-xorg-hwe-16.04 -y; fi
+if ! [[ $lsb_v = "18.04" || $lsb_v = "18.10" ]];then sudo apt install libcryptopp-dev -y ;fi
+if ! [[ $lsb_v = "18.04" || $lsb_v = "18.10" ]];then sudo apt-get install --install-recommends xserver-xorg-hwe-16.04 -y; fi
 
 if [ $ROCM_ = "YES" ]
  then