From: Kern Sibbald Date: Wed, 26 Mar 2008 17:34:56 +0000 (+0000) Subject: Fix cleanup-tape script again X-Git-Tag: Release-3.0.0~1636 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=72f0b04b9e3b517b8694e936717e9433ba30ad64;p=bacula%2Fbacula Fix cleanup-tape script again git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6693 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/cleanup-tape.in b/regress/scripts/cleanup-tape.in index 1627c91d71..e5ebe56344 100755 --- a/regress/scripts/cleanup-tape.in +++ b/regress/scripts/cleanup-tape.in @@ -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