#!/bin/sh
#
# Get a new Kernel Source and necessary modules
#
ver=$1

echo Retrieving Kernel $ver...
cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-$ver.tar.bz2

echo Decompressing...
tar -jxf linux-$ver.tar.bz2
ln -sf linux-$ver linux

echo CVS-Update for madwifi
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi co madwifi
