kuc.conf 731 Bytes
Newer Older
Finn Hering's avatar
Finn Hering committed
1
#set the the Linux Kernel Rease, lts, stable eg.
Finn Hering's avatar
Finn Hering committed
2 3
release="longterm"

Finn Hering's avatar
Finn Hering committed
4 5 6 7 8 9 10 11 12 13 14 15 16
#reads if Kernel needs update
KUstatus=$(cat ~/.KUC)

#reads the kernel version from the output of KUC
Kver=$(KUC)

reads the shorter Kernel version (4.x) FIXME: dunno what the exact name of that is lmao
K1ver=$(echo $Kver | cut -d "." -f1 | awk '{print $NF}')

#reads how many threds you PC has, you can set a number manually if you want to use LESS
cores=$(grep -c ^processor /proc/cpuinfo)

#reads the newest Kernel verion from kernel.org (with release in mind)
Finn Hering's avatar
Finn Hering committed
17
versionOnline=$(curl -Ss https://www.kernel.org/finger_banner | grep -m1 $release | awk '{print $NF}')
Finn Hering's avatar
Finn Hering committed
18 19

#looks wich kernel Version you have installed
Finn Hering's avatar
Finn Hering committed
20 21
versionInstalled=$(uname -r | cut -d "-" -f1)