Initial commit
This commit is contained in:
commit
d3c6e29902
202 changed files with 3909 additions and 0 deletions
28
get-latest-kernel
Executable file
28
get-latest-kernel
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/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 "$FULL_URL"
|
||||
Loading…
Add table
Add a link
Reference in a new issue