]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/prepare-two-tapes.in
Tweak
[bacula/bacula] / regress / scripts / prepare-two-tapes.in
index 18f61c160f84868d03db7fed7191e519602a0816..1093895ab7e08ba5b77187f71de793765c160d64 100755 (executable)
@@ -8,6 +8,11 @@
 
 scripts/cleanup
 
+
+# with disk-changer, we have to initialize slots
+init_slot @tape_drive@ $SLOT1
+init_slot @tape_drive@ $SLOT2
+
 #
 # init first of two slots
 # optimize so we don't unnecessarily unload and load slots
@@ -25,7 +30,7 @@ if test x@autochanger@ != x/dev/null; then
    $SLOT2)
       slot=$SLOT2
       ;;
-   default)
+   *)
       bin/@changer_script@ @autochanger@ unload $slot @tape_drive@ $DRIVE1
       bin/@changer_script@ @autochanger@ load $SLOT1 @tape_drive@ $DRIVE1
       slot=$SLOT1
@@ -43,7 +48,7 @@ if test x@autochanger@ != x/dev/null; then
    $SLOT2)
       bin/@changer_script@ @autochanger@ load $SLOT1 @tape_drive@ $DRIVE1
       ;;
-   default)
+   *)
       echo "Something went wrong. Expected $SLOT1 or $SLOT2, got $slot"
       exit 1
    esac