#!/bin/sh
# Export some Terminal configurations to a DOS formatted floppy
LABEL="Terminals configurations"
while true
do
	if [ "$1" = "--label" ] ; then
		LABEL=$2
		shift
		shift
	elif [ "$1" = "--lowlevel" ] ; then
		fdformat /dev/fd0
		shift
	elif [ "$1" = "--format" ] ; then
		/sbin/mkdosfs /dev/fd0
		shift
	else
		break
	fi
done
echo $LABEL | mcopy -o - a:terms.txt
cd /var/xterminals
tar zcf - $* | mcopy -o - a:terms.tgz



