#!/bin/sh # # State that we have loaded a tape set -e cd /var/local/backup if test -f "/etc/backup/tape.$1" then echo "$1" >really-TAPEID echo "Will assume tape is $1 unless I discover otherwise." else echo "Will only use tape if it has a TAPEID." rm -f really-TAPEID fi