9468f9b060
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
28 lines
631 B
Bash
Executable file
28 lines
631 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Nico Schottelius <nico-linux@schottelius.(net|org)>
|
|
# Date: 2006-03-20
|
|
# Last Modified: ls -l
|
|
# Version: 0.1
|
|
# Comment: based on latest-kernel 1.4
|
|
# (http://linux.schottelius.org/scripts/#latest-kernel)
|
|
# Copying: GPL2
|
|
#
|
|
|
|
VERSION=$(curl -s http://ftp.kernel.org/pub/linux/kernel/v2.6/ | grep LATEST-IS- | sed 's/.*LATEST-IS-\(.*\)<\/a.*/\1/')
|
|
|
|
echo "Retrieving Kernel version $VERSION ..."
|
|
|
|
#
|
|
# Get kernel via http, so proxies can cache it
|
|
#
|
|
BASEURL="http://www.kernel.org/pub/linux/kernel/v2.6/linux-"
|
|
|
|
#
|
|
# get .tar.bz2
|
|
#
|
|
EXTENSION=".tar.bz2"
|
|
|
|
FULL_URL=${BASEURL}${VERSION}${EXTENSION}
|
|
|
|
wget -c "$FULL_URL"
|