diff --git a/rp-os-ae.sh b/rp-os-ae.sh index 1496f8e..05dceff 100644 --- a/rp-os-ae.sh +++ b/rp-os-ae.sh @@ -10,7 +10,7 @@ bold=$(tput bold) # ${bold} normal=$(tput sgr0) # ${normal} yellow=$(tput setaf 3) # ${yellow} -# Variables +# Variables - Credit Lordify CPU=$(lscpu | grep "AMD" -c) cachy=$(ls /boot/ | grep "cachy" -c) nVidia=$(lspci -P | grep "NVIDIA" -c) @@ -83,7 +83,7 @@ nVidia=$(lspci -P | grep "NVIDIA" -c) sudo pacman -S linux-cachyos linux-cachyos-headers --noconfirm sleep 3 -# Compatibility Detection +# Compatibility Detection - Credit Lordify if [[ $cachy -gt 0 ]]; then sudo kernel-install add-all sudo mv /boot/loader/entries/*-cachyos.conf /boot/loader/entries/linux-cachyos.conf @@ -101,21 +101,21 @@ nVidia=$(lspci -P | grep "NVIDIA" -c) echo --------------------------------------------- echo -# UCode installer +# UCode installer - Credit Lordify if [[ $CPU -gt 0 ]]; then sudo pacman -S amd-ucode --noconfirm else sudo pacman -S intel-ucode --noconfirm fi -# Adding ucode to boot entries +# Adding ucode to boot entries - Credit Lordify if [[ $CPU -gt 0 ]]; then echo "initrd /amd-ucode.img" | sudo tee -a /boot/loader/entries/*.conf else echo "initrd /intel-ucode.img" | sudo tee -a /boot/loader/entries/*.conf fi -# nVidia +# nVidia - Credit Lordify if [[ $nVidia -gt 0 && $cachy -gt 0 ]]; then sudo pacman -S linux-cachyos-nvidia --noconfirm elif [[ $nVidia -gt 0 && $cachy -eq 0 ]]; then