-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-classic.sh
executable file
·61 lines (37 loc) · 1.29 KB
/
update-classic.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env bash
VERS=$1
rm -rf ~/build
mkdir ~/build
cd ~/build
wget https://www.kernel.org/pub/linux/kernel/v5.x/linux-${VERS}.tar.xz
tar -xvJf linux-${VERS}.tar.xz
cd linux-${VERS}
echo "EXTRACTION DONE"
read -p "Press enter to continue"
make mrproper
wget "https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux" -O .config
wget https://raw.githubusercontent.com/herobrauni/scripts/master/vars.patch
wget https://raw.githubusercontent.com/herobrauni/scripts/master/quirks.patch
# wget https://raw.githubusercontent.com/herobrauni/scripts/master/pci.patch
# wget https://raw.githubusercontent.com/herobrauni/scripts/master/dcn20_hwseq.patch
echo "DOWNLOADS DONE"
read -p "Press enter to continue"
echo "PATCHES"
for i in ./*.patch; do patch -p1 < $i; done
echo "PATCHES DONE"
read -p "Press enter to continue"
unset CORES
declare -i CORES
CORES="$(nproc) + 1"
echo "MAKING WITH $CORES CORES"
make -j$CORES
echo "MAKE COMPLETE - SWITCH TO SUDO"
read -p "Press enter to continue"
sudo make -j$CORES modules_install
echo "MODULES DONE - COPY MKINITCPIO GRUB"
read -p "Press enter to continue"
sudo cp -v arch/x86_64/boot/bzImage /boot/vmlinuz-linux-custom
sudo mkinitcpio -P
sudo grub-mkconfig -o /boot/grub/grub.cfg
yay -S nvidia-dkms corefreq-git
echo "DONE"