chiark
/
gitweb
/
~cjwatson
/
bin.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c4d9b92f92e975180e29df4eb41e950587414d7e
[bin.git]
/
get-kernel
1
#! /bin/sh -e
2
3
VERSION=$1
4
MAJOR=`expr $1 : '\(^[0-9]*\.[0-9]*\)'`
5
6
rm -f linux
7
wget -c ftp://ftp.kernel.org/pub/linux/kernel/v$MAJOR/linux-$VERSION.tar.bz2
8
tar xjvf linux-$VERSION.tar.bz2
9
rm -f linux-$VERSION.tar.bz2
10
mv linux linux-$VERSION
11
ln -s linux-$VERSION linux