removed cachy added kernelstub
This commit is contained in:
parent
6905f1cd40
commit
7e6474e62b
1 changed files with 4 additions and 32 deletions
36
raveos.sh
36
raveos.sh
|
@ -12,7 +12,6 @@ yellow=$(tput setaf 3) # ${yellow}
|
|||
|
||||
# Variables - Credit Lordify
|
||||
CPU=$(lscpu | grep "AMD" -c)
|
||||
cachy=$(ls /boot/ | grep "cachy" -c)
|
||||
nVidia=$(lspci -P | grep "NVIDIA" -c)
|
||||
Locale=$(echo $LANG)
|
||||
|
||||
|
@ -69,38 +68,11 @@ Locale=$(echo $LANG)
|
|||
echo ---------------------------------------------
|
||||
echo
|
||||
|
||||
# CachyOS Kernel install
|
||||
# Kernelstub install
|
||||
|
||||
echo
|
||||
echo ---------------------------------------------
|
||||
echo Installing ${bold}${yellow}CachyOS - Gaming Kernel${normal}
|
||||
|
||||
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
|
||||
git clone https://github.com/pop-os/kernelstub
|
||||
cd kernelstub
|
||||
sudo python3 setup.py install --record=installed_files.txt
|
||||
|
||||
# UCode installer - Credit Lordify
|
||||
if [[ $CPU -gt 0 ]]; then
|
||||
|
|
Loading…
Reference in a new issue