Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- KERNELVER="3.9.3"
- KERNELNAME="-amd64-patschi"
- USECORES=8
- echo "> Making kernel Linux $KERNELVER..."
- if [ ! -f "linux-$KERNELVER.tar.xz" ]; then
- echo "> Downloading kernel..."
- wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-$KERNELVER.tar.xz
- fi
- if [ ! -d "linux-$KERNELVER" ]; then
- echo "> Unpacking kernel..."
- tar xf linux-$KERNELVER.tar.xz
- fi
- cd linux-*
- echo "> Using defaults with config questions..."
- yes "" | make oldconfig
- export CONCURRENCY_LEVEL=$USECORES
- echo "> Compiling..."
- fakeroot make-kpkg --initrd --append-to-version=$KERNELNAME kernel-image kernel-headers modules_image
- echo " "
- echo "> Work done, Sir!"
Advertisement
Add Comment
Please, Sign In to add comment