Updated comment

This commit is contained in:
dbroqua 2019-06-22 13:34:31 +02:00
parent 25546630ac
commit f8ebc9b8bb

View file

@ -5,26 +5,21 @@ DEFAULT='\033[0m'
PREFIX='linux-'
EXTENSION='.tar.xz'
# Connaitre le dernier kernel existant
# Get last kernel version
INFO=`curl -Ls https://www.kernel.org/ | perl -lne 'BEGIN{$/=""} print "$1 $2" if \
/latest_link.*?<a.*?href=\"(.*?)\".*?>(.*?)</s'`
KERNEL=`echo ${INFO} | cut -d' ' -f 2`
URL=`echo ${INFO} | cut -d' ' -f 1`
FILE=`echo ${URL}|rev|cut -d'/' -f 1 | rev`
#echo $KERNEL :: $URL :: $EXTENSION
#exit
# On créé un dossier du style /usr/src/5.1.9
# Make directory in /usr/src/
DIR="/usr/src/${KERNEL}"
mkdir "${DIR}"
# Go to build dir
cd "${DIR}" || exit
# On télécharge l'archive dans le dossier
# Get kernel archive
wget ${URL}
# Extract kernel archive