#!/bin/sh
#
# $Id$
#
# Copies RedHat Linux KickStart configuration file to MS-DOS formatted
# floppy disk.
BASENAME=`basename $0`
if [ -z "$1" ]; then
echo "usage: $BASENAME kickstart-config" >&2
exit 1
fi
# assumes /mnt/floppy entry in /etc/fstab setup by kudzu
mount /mnt/floppy
TARGET=/mnt/floppy/ks.cfg
cp -f "$1" $TARGET
sync
cmp "$1" $TARGET
umount /mnt/floppy