# Copy the linux kernel to the floppy
if [ -e linux ]; then
echo "Copying the 'linux' kernel to the floppy"
cp linux tempfs
else
echo "Couldn't find a kernel named 'linux' in the current directory,"
echo "so I'm using the kernel on your hard drive. It's probably too big..."
cp /boot/vm* tempfs/linux
fi

# Copy the file system to the floppy
echo "Copying the compressed filesystem to the floppy"
cp filesys tempfs

Hopefully you've been a good thief and got yourself a nice small kernel to use. If so, copy it into this script's directory with the name "linux". The name is important for two reasons. One, because that's the default name SysLinux expects to see for the kernel. If you change it, you have to say what the new name is in the syslinux.cfg file. The second reason to stick with the "linux" name for the kernel is another boot message. I think it looks better to say "Loading linux" than to say "Loading vmlinuz" or whatever else your kernel may be named. Besides, you can't keep your original long kernel name anyway. You're constrained by that pesky 8-dot-3 naming rule here too.