]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix two-pool-tape for faketape
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 1 Jun 2008 08:14:14 +0000 (08:14 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 1 Jun 2008 08:14:14 +0000 (08:14 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@7081 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/prepare-two-tapes.in

index 73ad83c879da5904ee69fd729485f7b08f279671..95dad305c0efa54fc5d8813fdfe9aae41a1425d4 100755 (executable)
@@ -8,7 +8,7 @@
 scripts/cleanup
 
 if test x@autochanger@ != x/dev/null; then
-   slot=`bin/@changer_script@ @autochanger@ loaded 0 dummy $DRIVE1`
+   slot=`bin/@changer_script@ @autochanger@ loaded 0 @tape_drive@ $DRIVE1`
    if test "x${slot}" != "x$SLOT2"; then
       bin/@changer_script@ @autochanger@ unload $slot @tape_drive@ $DRIVE1
       bin/@changer_script@ @autochanger@ load $SLOT2 @tape_drive@ $DRIVE1
@@ -21,7 +21,7 @@ fi
 # If we have an autochanger always load tape in slot 1
 #
 if test x@autochanger@ != x/dev/null; then
-   slot=`bin/@changer_script@ @autochanger@ loaded 0 dummy $DRIVE1`
+   slot=`bin/@changer_script@ @autochanger@ loaded 0 @tape_drive@ $DRIVE1`
    if test "x${slot}" != "x$SLOT1"; then
       bin/@changer_script@ @autochanger@ unload $slot @tape_drive@ $DRIVE1
       bin/@changer_script@ @autochanger@ load $SLOT1 @tape_drive@ $DRIVE1