3 # Cleanup left over files -- both before and after test run
7 if test x@autochanger@ != x/dev/null; then
8 slot=`bin/@changer_script@ @autochanger@ loaded 0 @tape_drive1@ 1`
9 echo "Slot $slot in drive 1"
10 if test x$slot != x0 ; then
11 echo "unload slot $slot in drive 1"
12 bin/@changer_script@ @autochanger@ unload $slot @tape_drive1@ 1
14 slot=`bin/@changer_script@ @autochanger@ loaded 0 @tape_drive@ 0`
15 echo "Slot $slot in drive 0"
16 if test x$slot != x0 ; then
17 echo "unload slot $slot in drive 0"
18 bin/@changer_script@ @autochanger@ unload $slot @tape_drive@ 0
22 slot=`bin/@changer_script@ @autochanger@ loaded 0 @tape_drive1@ 1`
23 if test x$slot != x$SLOT2; then
24 echo "load slot $SLOT2 in drive 1"
25 bin/@changer_script@ @autochanger@ load $SLOT2 @tape_drive1@ 1
28 init_drive @tape_drive1@
30 echo "unload slot $SLOT2 in drive 1"
31 bin/@changer_script@ @autochanger@ unload $SLOT2 @tape_drive1@ 1
33 slot=`bin/@changer_script@ @autochanger@ loaded 0 @tape_drive@ 0`
34 echo "Slot $slot in drive 0"
35 if test x$slot != x$SLOT1; then
36 echo "load slot $SLOT1 in drive 0"
37 bin/@changer_script@ @autochanger@ load $SLOT1 @tape_drive@ 0
40 init_drive @tape_drive@
42 echo "unload slot $SLOT1 from drive 0"
43 bin/@changer_script@ @autochanger@ unload $SLOT1 @tape_drive@ 0