]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/cleanup-2drive.in
Add JobId to all Dmsg() output.
[bacula/bacula] / regress / scripts / cleanup-2drive.in
index e0857f7995ec894279e13e48581809576b1cb1a7..32b27c019e0fd439ce706fa2ee805d93dde619c2 100755 (executable)
@@ -4,23 +4,23 @@
 #
 scripts/cleanup
 
-if ! test x@autochanger@ = x/dev/null; then
+if test x@autochanger@ != x/dev/null; then
    slot=`bin/mtx-changer @autochanger@ loaded 0 @tape_drive1@ 1`
    echo "Slot $slot in drive 1"
-   if ! test x$slot = x0 ; then
+   if test x$slot != x0 ; then
       echo "unload slot $slot in drive 1"
       bin/mtx-changer @autochanger@ unload $slot @tape_drive1@ 1
    fi
    slot=`bin/mtx-changer @autochanger@ loaded 0 @tape_drive@ 0`
    echo "Slot $slot in drive 0"
-   if ! test x$slot = x0 ; then
+   if test x$slot != x0 ; then
       echo "unload slot $slot in drive 0"
       bin/mtx-changer @autochanger@ unload $slot @tape_drive@ 0
    fi
 
 
    slot=`bin/mtx-changer @autochanger@ loaded 0 @tape_drive1@ 1`
-   if ! test x$slot = x2; then
+   if test x$slot != x2; then
       echo "load slot 2 in drive 1"
       bin/mtx-changer @autochanger@ load 2 @tape_drive1@ 1
    fi
@@ -32,7 +32,7 @@ if ! test x@autochanger@ = x/dev/null; then
 
    slot=`bin/mtx-changer @autochanger@ loaded 0 @tape_drive@ 0`
    echo "Slot $slot in drive 0"
-   if ! test x$slot = x1; then
+   if test x$slot != x1; then
       echo "load slot 1 in drive 0"
       bin/mtx-changer @autochanger@ load 1 @tape_drive@ 0
    fi