linux centos 内核编译脚本
#compile.sh
SDIR=`pwd`
cd /usr/src/kernels/linux-2.6.18
make
make modules_install
echo “Compile kernel and modules done”
rm -f /boot/vmlinuz2.6.22
cp /usr/src/kernels/linux-2.6.18/arch/i386/boot/bzImage /boot/vmlinuz2.6.22
rm -f /boot/System.map-2.6.22
cp /usr/src/kernels/linux-2.6.18/System.map[......]