chiark / gitweb /
Sync $HOME/bin from riva. New scripts to get a Debian bug in mbox form,
[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