]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix cleanup-tape script again
authorKern Sibbald <kern@sibbald.com>
Wed, 26 Mar 2008 17:34:56 +0000 (17:34 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 26 Mar 2008 17:34:56 +0000 (17:34 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6693 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/cleanup-tape.in

index 1627c91d714cfb463e1e5d4e59a76b12a21920d4..e5ebe56344bf27fbea19c4f949826f96f5c06915 100755 (executable)
@@ -6,9 +6,11 @@
 
 scripts/cleanup
 
-a=`bin/mtx-changer @autochanger@ loaded $SLOT1 @tape_drive@ 0`
-if test $a = 0 ; then
-  bin/mtx-changer @autochanger@ load $SLOT1 @tape_drive@ 0
+if test "x@autochanger@" != "x/dev/null" ; then
+   a=`bin/mtx-changer @autochanger@ loaded $SLOT1 @tape_drive@ 0`
+   if test $a = 0 ; then
+     bin/mtx-changer @autochanger@ load $SLOT1 @tape_drive@ 0
+   fi
 fi
 mt -f @tape_drive@ rewind
 mt -f @tape_drive@ weof