git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6913
91ce42f0-d328-0410-95d8-
f526ca767f89
# Set this if you use libdbi framework
#LIBDBI="dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport = 5432"
+# Set this if you use fake tape driver
+#USE_FAKETAPE=yes
+
# Set this to "--with-tcp-wrappers" or "--without-tcp-wrappers"
TCPWRAPPERS="--with-tcp-wrappers"
fi
fi
-mt -f @tape_drive@ rewind
-mt -f @tape_drive@ weof
+if test a$USE_FAKETAPE = a; then
+ mt -f @tape_drive@ rewind
+ mt -f @tape_drive@ weof
+else
+ cp /dev/null @tape_drive@
+fi
+
bin/mtx-changer @autochanger@ load $SLOT1 @tape_drive@ 0
fi
fi
-mt -f @tape_drive@ rewind
-mt -f @tape_drive@ weof
+
+if test a$USE_FAKETAPE = a; then
+ mt -f @tape_drive@ rewind
+ mt -f @tape_drive@ weof
+else
+ cp /dev/null @tape_drive@
+fi
+