Listing 3. This /ltsp/i386/usr/src/netkernels copies
kernels from the build tree to the TFTP directory.

#! /bin/bash
for vsn in 2.4.20 2.4.21
do pushd linux-$vsn; make bzImage; popd
   s=linux-$vsn/arch/i386/boot/bzImage
   d=../../boot/vmlinuznbi-$vsn
   mknbi-linux --ip=dhcp \
      --append "root=/dev/nfs" $s >$d
done


