-# load the other slot
-mt -f ${TAPE_DRIVE} rewind
-case $slot in
- $SLOT1)
- bin/mtx-changer ${AUTOCHANGER} unload $slot ${TAPE_DRIVE} $DRIVE1
- bin/mtx-changer ${AUTOCHANGER} load $SLOT2 ${TAPE_DRIVE} $DRIVE1
- ;;
- $SLOT2)
- bin/mtx-changer ${AUTOCHANGER} unload $slot ${TAPE_DRIVE} $DRIVE1
- bin/mtx-changer ${AUTOCHANGER} load $SLOT1 ${TAPE_DRIVE} $DRIVE1
- ;;
- default)
- echo "Something went wrong. Expected $SLOT1 or $SLOT2, got $slot"
- exit 1
-esac
-
-mt -f ${TAPE_DRIVE} rewind
-mt -f ${TAPE_DRIVE} weof
-
-# second half of job -- write on next tape