#!/bin/sh # # This script will grab the source code from kernel.org, uncompress and delete # the compressed, prepare for module building. # # http://www.bluez.org # By Manuel Naranjo # set -e cd /usr/src # Some useful variables about the package NAME=linux VERSION=${VERSION:-$(uname -r)} ARCH=${ARCH:-i486} cd /usr/src wget -O $CWD/${NAME}-${VERSION}.tar.bz2 http://kernel.org/pub/linux/kernel/v2.6/${NAME}-${VERSION}.tar.bz2 bunzip2 -c -d $CWD/${NAME}-${VERSION}.tar.bz2 | tar x || exit 1 rm -f linux ln -s ${NAME}-${VERSION} linux cd $NAME-$VERSION cp /boot/config .config make oldconfig make modules_prepare