size=1200
for i in ../tcpip.tgz ../base.tgz vmlinuz etc/psdatabase;do
 if [ ! -f $i ];then echo "$i is missing.";size=0;fi;done
if [ $size = 0 ];then return;fi
umount /mnt 2>/dev/null
umount /dev/fd0 2>/dev/null
mkfs.minix -c -n14 /dev/fd0 $size
echo
mount -t minix /dev/fd0 /mnt
fixup etc/psdatabase
tar cf - etc|gzip -9 >psdata.tgz
rdev vmlinuz /dev/fd0
rdev -R vmlinuz 1
(cd disk;tar cf - dev)|(cd /mnt;tar xfp -)
cp -p vmlinuz psdata.tgz Originals/etc/Bootmesg Originals/etc/lilo.conf \
 /boot/boot.b ../tcpip.tgz ../base.tgz /mnt
mkdir /mnt/etc /mnt/proc /mnt/mnt /mnt/root
(cd init;make boot ram;cp -p ram /mnt/etc/init;>/mnt/etc/utmp)
fixup /mnt /mnt/* /mnt/etc/*
(cd /mnt/etc;ln -s /mnt/etc/group /mnt/etc/kbmap /mnt/etc/passwd \
 /mnt/etc/termcap /root/etc/mtab /root/etc/psdatabase .)
(cd /mnt;ln -s /mnt/Base.tgz /root/bin /mnt/first.tgz /mnt/ibin /mnt/lib \
 /root/sbin /root/tmp /root/usr /root/var .)
cp /dev/zero /mnt/junk 2>/dev/null
rm /mnt/junk
df
umount /mnt
dd if=/dev/fd0 of=/var/tmp/tgzfiles/boot bs=1024 count=$size
fixup /var/tmp/tgzfiles/boot
