#!/bin/zsh set -e if [[ $EUID == 0 ]]; then echo "Don't run this as root" exit 1 fi if [[ ! -d linux-2.4.32 ]]; then wget -c http://www.mit-lcs.lkams.kernel.org/pub/linux/kernel/v2.4/linux-2.4.32.tar.gz tar xzvf linux-2.4.32.tar.gz fi cd linux-2.4.32 cp ../config .config make dep make make bzImage cp arch/i386/boot/bzImage ../bzImage-2.4.32