# Put a SysLinux configuration file on the floppy
echo "Creating a /syslinux.cfg configuration file on the floppy"
echo "append initrd=filesys root=/dev/ram0" > tempfs/syslinux.cfg

# Unmount the floppy
echo "Unmounting the floppy"
sync;sync
umount
-r tempfs 2> /dev/null
umount -l tempfs 2> /dev/null

# Run syslinux to make the floppy bootable
echo "Running syslinux to make the floppy bootable"
syslinux /dev/fd0

# Remove the temporary files now that we're done with them
echo "Cleaning up (deleting) 'fs', 'filesys', and 'tempfs'"
rm fs
rm filesys
rm -r tempfs

# Done
echo "Done. At least if everything WORKED it's done!"

We're almost done! All we have to do is create a configuration file for the SysLinux program, unmount the floppy, and run the "syslinux" command. A little cleanup and it's finished. Using Syslinux was the easiest part of the whole operation.