#!/bin/sh # # Tape change script for cass38's autoloader. Intended to be run from GNU # tar via the -F option. # MT=/usr/bin/mt MTX=/home/jmi/bin/mtx sleep 60 # Rewind it first. $MT -f /dev/rmt/0n rewind || exit 1 sleep 60 # Instruct the changer to load the next tape. $MTX -f /dev/changer next || exit 1 # Wait a minute for it to finish loading (mtx returns before # the drive has finished). sleep 60 exit 0