]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Use DeviceType=Vtape when USE_VTAPE=yes
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 24 Jun 2008 19:04:20 +0000 (19:04 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 24 Jun 2008 19:04:20 +0000 (19:04 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7225 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/copy-2tape-confs
regress/scripts/copy-tape-confs
regress/scripts/vtape_tape_options [new file with mode: 0644]

index e23adc5c820a52872972cdc1956fa99d344f1e49..26f4f01088859e95ed1c74521fa533454051db0b 100755 (executable)
@@ -9,7 +9,11 @@ cp bin/bacula-dir.conf tmp/1
 sed -f ${outf} tmp/1 >bin/bacula-dir.conf
 
 # get proper SD tape definitions
-cp -f scripts/linux_tape_options bin/tape_options
+if [ x$USE_VTAPE = xyes ]; then
+    cp -f scripts/vtape_tape_options bin/tape_options
+else
+    cp -f scripts/linux_tape_options bin/tape_options
+fi
 if test x`uname` = xFreeBSD ; then
    cp -f scripts/freebsd_tape_options bin/tape_options
 fi
index c8dae32c4a8b27c4c394b112a71bc4ba47d14656..afdf869e49c5288df99651b98d9dabdbbf8b307a 100755 (executable)
@@ -5,7 +5,11 @@
 /bin/cp -f scripts/test-console.conf bin/bconsole.conf
 
 # get proper SD tape definitions
-cp -f scripts/linux_tape_options bin/tape_options
+if [ x$USE_VTAPE = xyes ]; then
+    cp -f scripts/vtape_tape_options bin/tape_options
+else 
+    cp -f scripts/linux_tape_options bin/tape_options
+fi
 if test x`uname` = xFreeBSD ; then
    cp -f scripts/freebsd_tape_options bin/tape_options
 fi
diff --git a/regress/scripts/vtape_tape_options b/regress/scripts/vtape_tape_options
new file mode 100644 (file)
index 0000000..2ac6e47
--- /dev/null
@@ -0,0 +1 @@
+DeviceType = Vtape