]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/cleanup-tape.in
Fix cleanup-tape script again
[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 if test "x@autochanger@" != "x/dev/null" ; then
10    a=`bin/mtx-changer @autochanger@ loaded $SLOT1 @tape_drive@ 0`
11    if test $a = 0 ; then
12      bin/mtx-changer @autochanger@ load $SLOT1 @tape_drive@ 0
13    fi
14 fi
15 mt -f @tape_drive@ rewind
16 mt -f @tape_drive@ weof