mtx-changer.conf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # This file is sourced by the mtx-changer script every time it runs.
  3. # You can put your site customization here, and when you do an
  4. # upgrade, the process should not modify this file. Thus you
  5. # preserve your mtx-changer configuration.
  6. #
  7. # Set to 1 if you want to do offline before unload
  8. offline=0
  9. # Set to amount of time in seconds to wait after an offline
  10. offline_sleep=0
  11. # Set to amount of time in seconds to wait after a load
  12. load_sleep=0
  13. # Set to 1 to do an inventory before a status. Not normally needed.
  14. inventory=0
  15. # If you have a VXA PacketLoader, it might display a different
  16. # Storage Element line, so try setting the following to 1
  17. vxa_packetloader=0
  18. # Set to 1 if you want debug info written to a log
  19. debug_log=0
  20. # mt status output
  21. # SunOS No Additional Sense
  22. # FreeBSD Current Driver State: at rest.
  23. # Linux ONLINE
  24. # Note Debian has a different mt than the standard Linux version.
  25. # When no tape is in the drive it waits 2 minutes.
  26. # When a tape is in the drive, it prints user unfriendly output.
  27. # Note, with Ubuntu Gusty (8.04), there are two versions of mt,
  28. # so we attempt to figure out which one.
  29. #
  30. OS=`uname`
  31. case ${OS} in
  32. SunOS)
  33. ready="No Additional Sense"
  34. ;;
  35. FreeBSD)
  36. ready="Current Driver State: at rest."
  37. ;;
  38. Linux)
  39. ready="ONLINE"
  40. if test -f /etc/debian_version ; then
  41. mt --version|grep "mt-st" >/dev/null 2>&1
  42. if test $? -eq 1 ; then
  43. ready="drive status"
  44. fi
  45. fi
  46. ;;
  47. esac