> Why not just do this:
>
> #!/bin/sh
> cd /usr/src
> rm linux
> ln -s linux-$1 linux
> cd linux
<----------------<+
> make mrproper |
> cp ../config.`/bin/hostname` .config |
> make oldconfig |
> cp .config ../config.`/bin/hostname` >---^
> make dep
> make clean
> make zImage
> make modules
> make modules_install
> cp /usr/src/linux/arch/i386/boot/zImage /linux-$1
> lilo
Ummm, you trashed your .config