From 03c2140a83d9fdd050ed0e289ef4b3e8b61dc9ea Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 24 Jun 2008 19:04:20 +0000 Subject: [PATCH] ebl Use DeviceType=Vtape when USE_VTAPE=yes git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7225 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/copy-2tape-confs | 6 +++++- regress/scripts/copy-tape-confs | 6 +++++- regress/scripts/vtape_tape_options | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 regress/scripts/vtape_tape_options diff --git a/regress/scripts/copy-2tape-confs b/regress/scripts/copy-2tape-confs index e23adc5c82..26f4f01088 100755 --- a/regress/scripts/copy-2tape-confs +++ b/regress/scripts/copy-2tape-confs @@ -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 diff --git a/regress/scripts/copy-tape-confs b/regress/scripts/copy-tape-confs index c8dae32c4a..afdf869e49 100755 --- a/regress/scripts/copy-tape-confs +++ b/regress/scripts/copy-tape-confs @@ -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 index 0000000000..2ac6e4775f --- /dev/null +++ b/regress/scripts/vtape_tape_options @@ -0,0 +1 @@ +DeviceType = Vtape -- 2.39.5