1
0
Fork 0
forked from RP1/RaveOS-arch

removed cachy added kernelstub

This commit is contained in:
RP1 2024-12-28 22:12:38 +01:00 committed by RP1
parent 6905f1cd40
commit 7e6474e62b

View file

@ -12,7 +12,6 @@ yellow=$(tput setaf 3) # ${yellow}
# Variables - Credit Lordify # Variables - Credit Lordify
CPU=$(lscpu | grep "AMD" -c) CPU=$(lscpu | grep "AMD" -c)
cachy=$(ls /boot/ | grep "cachy" -c)
nVidia=$(lspci -P | grep "NVIDIA" -c) nVidia=$(lspci -P | grep "NVIDIA" -c)
Locale=$(echo $LANG) Locale=$(echo $LANG)
@ -69,38 +68,11 @@ Locale=$(echo $LANG)
echo --------------------------------------------- echo ---------------------------------------------
echo echo
# CachyOS Kernel install # Kernelstub install
echo git clone https://github.com/pop-os/kernelstub
echo --------------------------------------------- cd kernelstub
echo Installing ${bold}${yellow}CachyOS - Gaming Kernel${normal} sudo python3 setup.py install --record=installed_files.txt
curl https://mirror.cachyos.org/cachyos-repo.tar.xz -o cachyos-repo.tar.xz
tar xvf cachyos-repo.tar.xz && cd cachyos-repo
cp /home/$USER/cosmetics/cachyos-repo.sh /home/$USER/cosmetics/cachyos-repo/
sudo ./cachyos-repo.sh
sleep 2
cd -
sudo pacman -S linux-cachyos linux-cachyos-headers --noconfirm
sleep 3
# 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
echo "default linux-cachyos.conf" | sudo tee -a /boot/loader/loader.conf
sudo sed -i 's/timeout 3/timeout 0/' /boot/loader/loader.conf
else
sudo pacman -S linux-zen linux-zen-headers --noconfirm
sudo kernel-install add-all
sudo mv /boot/loader/entries/*-zen.conf /boot/loader/entries/linux-zen.conf
echo "default linux-zen.conf" | sudo tee -a /boot/loader/loader.conf
sudo sed -i 's/timeout 3/timeout 0/' /boot/loader/loader.conf
fi
echo ${bold}${yellow}CachyOS - Gaming Kernel ${normal}installed.
echo ---------------------------------------------
echo
# UCode installer - Credit Lordify # UCode installer - Credit Lordify
if [[ $CPU -gt 0 ]]; then if [[ $CPU -gt 0 ]]; then