2 # Copyright (C) 2000-2015 Kern Sibbald
3 # License: BSD 2-Clause; see file LICENSE-FOSS
6 # This file is sourced by the mtx-changer script every time it runs.
7 # You can put your site customization here, and when you do an
8 # upgrade, the process should not modify this file. Thus you
9 # preserve your mtx-changer configuration.
12 # We update the version when an incompatible change
13 # to mtx-changer or this conf file is made, such as
14 # adding a new required variable.
17 # Set to 1 if you want to do offline before unload
20 # Set to amount of time in seconds to wait after an offline
23 # Set to amount of time in seconds to wait after a load
26 # Set to 1 to do an inventory before a status. Not normally needed.
29 # If you have a VXA PacketLoader, it might display a different
30 # Storage Element line, so try setting the following to 1
37 # If you have multiple SD's, set this differently for each one
38 # so you know which message comes from which one. This can
39 # be any string, and will appear in each debug message just
40 # after the time stamp.
43 # Set to 1 if you want debug info written to a log
46 # Set to debug level you want to see
48 # 10 is important events (load, unload, loaded)
50 # Note debug_log must be set to 1 for anything to be generated
54 # Debug levels by importance
55 # Normally you do not need to change this
57 # More important messages
62 # SunOS No Additional Sense
63 # FreeBSD Current Driver State: at rest.
65 # Note Debian has a different mt than the standard Linux version.
66 # When no tape is in the drive it waits 2 minutes.
67 # When a tape is in the drive, it prints user unfriendly output.
68 # Note, with Ubuntu Gusty (8.04), there are two versions of mt,
69 # so we attempt to figure out which one.
75 ready="No Additional Sense"
78 ready="Current Driver State: at rest."
82 if test -f /etc/debian_version ; then
83 mt --version|grep "mt-st" >/dev/null 2>&1
84 if test $? -eq 1 ; then