2 # Copyright (C) 2000-2015, Kern Sibbald
3 # License: BSD 2-Clause
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 # Set to 1 if you want to do offline before unload
15 # Set to amount of time in seconds to wait after an offline
18 # Set to amount of time in seconds to wait after a load
21 # Set to 1 to do an inventory before a status. Not normally needed.
24 # If you have a VXA PacketLoader, it might display a different
25 # Storage Element line, so try setting the following to 1
28 # Set to 1 if you want debug info written to a log
33 # SunOS No Additional Sense
34 # FreeBSD Current Driver State: at rest.
36 # Note Debian has a different mt than the standard Linux version.
37 # When no tape is in the drive it waits 2 minutes.
38 # When a tape is in the drive, it prints user unfriendly output.
39 # Note, with Ubuntu Gusty (8.04), there are two versions of mt,
40 # so we attempt to figure out which one.
46 ready="No Additional Sense"
49 ready="Current Driver State: at rest."
53 if test -f /etc/debian_version ; then
54 mt --version|grep "mt-st" >/dev/null 2>&1
55 if test $? -eq 1 ; then