forked from erikdubois/Ultimate-Linux-Mint-18.2-Cinnamon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-to-the-last-stable-4.13-rc1-v1.sh
executable file
·45 lines (27 loc) · 1.43 KB
/
update-to-the-last-stable-4.13-rc1-v1.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
#!/bin/bash
set -e
#
##################################################################################################################
#
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. AT YOUR OWN RISK.
#
##################################################################################################################
# latest kernel check the following url
# http://kernel.ubuntu.com/~kernel-ppa/mainline/
kernel1=http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13-rc1/linux-headers-4.13.0-041300rc1_4.13.0-041300rc1.201707151931_all.deb
kernel2=http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13-rc1/linux-headers-4.13.0-041300rc1-generic_4.13.0-041300rc1.201707151931_amd64.deb
kernel3=http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13-rc1/linux-image-4.13.0-041300rc1-generic_4.13.0-041300rc1.201707151931_amd64.deb
# cleaning tmp
[ -d /tmp/kernelupdate ] && rm -rf /tmp/kernelupdate
mkdir /tmp/kernelupdate
wget $kernel1 -P /tmp/kernelupdate/
wget $kernel2 -P /tmp/kernelupdate/
wget $kernel3 -P /tmp/kernelupdate/
cd /tmp/kernelupdate
sudo dpkg -i linux*
rm -rf /tmp/kernelupdate
echo "################################################################"
echo "############### Kernel is installed ############"
echo "############### Files have been deleted ############"
echo "########## Reboot and keep your fingers crossed ############"
echo "################################################################"