credited Lordify for her work!
This commit is contained in:
parent
d7b897239d
commit
1c41ae20a7
1 changed files with 5 additions and 5 deletions
10
rp-os-ae.sh
10
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
|
||||
|
|
Loading…
Reference in a new issue