#! /bin/sh

if [ -z "$1" ]
then
    echo -n 'Enter floppy device [/dev/fd0]: '
    read FLOPPY
    if [ -z "$FLOPPY" ]; then FLOPPY=/dev/fd0; fi
fi

if [ ! -b $FLOPPY ]
then
    echo $FLOPPY is not a block device.
    exit 1
fi

cd / && tar xvfp $FLOPPY
