From: Kern Sibbald Date: Tue, 8 Jul 2008 10:39:30 +0000 (+0000) Subject: Add mtx-changer.conf X-Git-Tag: Release-7.0.0~4328 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3fd9693f5d10b31739334c6a775f24d3c4815f14;p=bacula%2Fbacula Add mtx-changer.conf git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7339 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/scripts/mtx-changer.conf b/bacula/scripts/mtx-changer.conf new file mode 100644 index 0000000000..9630bdd6e4 --- /dev/null +++ b/bacula/scripts/mtx-changer.conf @@ -0,0 +1,56 @@ +# +# This file is sourced by the mtx-changer script every time it runs. +# You can put your site customization here, and when you do an +# upgrade, the process should not modify this file. Thus you +# preserve your mtx-changer configuration. +# + +# Set to 1 if you want to do offline before unload +offline=0 + +# Set to amount of time in seconds to wait after an offline +offline_sleep=0 + +# Set to amount of time in seconds to wait after a load +load_sleep=0 + +# Set to 1 to do an inventory before a status. Not normally needed. +inventory=0 + +# If you have a VXA PacketLoader, it might display a different +# Storage Element line, so try setting the following to 1 +vxa_packetloader=0 + +# Set to 1 if you want debug info written to a log +debug_log=0 + + +# mt status output +# SunOS No Additional Sense +# FreeBSD Current Driver State: at rest. +# Linux ONLINE +# Note Debian has a different mt than the standard Linux version. +# When no tape is in the drive it waits 2 minutes. +# When a tape is in the drive, it prints user unfriendly output. +# Note, with Ubuntu Gusty (8.04), there are two versions of mt, +# so we attempt to figure out which one. +# + +OS=`uname` +case ${OS} in + SunOS) + ready="No Additional Sense" + ;; + FreeBSD) + ready="Current Driver State: at rest." + ;; + Linux) + ready="ONLINE" + if test -f /etc/debian_version ; then + mt --version|grep "mt-st" >/dev/null 2>&1 + if test $? -eq 1 ; then + ready="drive status" + fi + fi + ;; +esac