]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/cleanup-tape.in
Fix cleanup-tape script to use slot
[bacula/bacula] / regress / scripts / cleanup-tape.in
1 #!/bin/sh
2 #
3 # Cleanup left over files -- both before and after test run
4 #
5 . ./config
6
7 scripts/cleanup
8
9 a=`bin/mtx-changer @autochanger@ loaded $SLOT1 @tape_drive@ 0`
10 if test $a = 0 ; then
11   bin/mtx-changer @autochanger@ load $SLOT1 @tape_drive@ 0
12 fi
13 mt -f @tape_drive@ rewind
14 mt -f @tape_drive@ weof