]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/cleanup-tape.in
ebl tweak tape operation for faketape mode
[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
16 if test a$USE_FAKETAPE = a; then
17    mt -f @tape_drive@ rewind
18    mt -f @tape_drive@ weof
19 else
20    cp /dev/null @tape_drive@
21 fi
22