#!/bin/sh

if [ $# != 2 ]
then
    echo "usage: ftt_ansi_prelabel drive label"
fi

(
cat <<EOF 
ftt_open $1
ftt_rewind
ftt_write_vol_label -type FTT_ANSI_HEADER -label $2
ftt_rewind
ftt_close
quit
EOF
) | ${FTT_DIR}/bin/ftt_test

# this used to have the following before the rewind, but
# shouldn't be needed anymore.
#
# Marc
# 
# ftt_skip_fm -1
# ftt_undump 
# 
# buffer 1 (80 bytes):
# 48 44 52 31 20 20 20 20 20 20 20 20 20 20 20 20 
# 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
# 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
# 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
# 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
# 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
# 
# end of tape
 
