Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. #
  2. # Copyright (C) 2000-2015 Kern Sibbald
  3. # License: BSD 2-Clause; see file LICENSE-FOSS
  4. #
  5. #
  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.
  10. #
  11.  
  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.
  15. version=2
  16.  
  17. # Set to 1 if you want to do offline before unload
  18. offline=0
  19.  
  20. # Set to amount of time in seconds to wait after an offline
  21. offline_sleep=0
  22.  
  23. # Set to amount of time in seconds to wait after a load
  24. load_sleep=0
  25.  
  26. # Set to 1 to do an inventory before a status. Not normally needed.
  27. inventory=0
  28.  
  29. # If you have a VXA PacketLoader, it might display a different
  30. # Storage Element line, so try setting the following to 1
  31. vxa_packetloader=0
  32.  
  33. #
  34. # Debug logging
  35. #
  36.  
  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.
  41. chgr_id=0
  42.  
  43. # Set to 1 if you want debug info written to a log
  44. debug_log=0
  45.  
  46. # Set to debug level you want to see
  47. # 0 is off
  48. # 10 is important events (load, unload, loaded)
  49. # 100 is everything
  50. # Note debug_log must be set to 1 for anything to be generated
  51. #
  52. debug_level=10
  53.  
  54. # Debug levels by importance
  55. # Normally you do not need to change this
  56. dbglvl=100
  57. # More important messages
  58. idbglvl=10
  59.  
  60. #
  61. # mt status output
  62. # SunOS No Additional Sense
  63.  
  64. # FreeBSD Current Driver State: at rest.
  65. # Linux ONLINE
  66. # Note Debian has a different mt than the standard Linux version.
  67. # When no tape is in the drive it waits 2 minutes.
  68. # When a tape is in the drive, it prints user unfriendly output.
  69. # Note, with Ubuntu Gusty (8.04), there are two versions of mt,
  70. # so we attempt to figure out which one.
  71. #
  72.  
  73. OS=`uname`
  74. case ${OS} in
  75. SunOS)
  76. ready="No Additional Sense"
  77. ;;
  78. FreeBSD)
  79. ready="Current Driver State: at rest."
  80. ;;
  81. Linux)
  82. ready="ONLINE"
  83. if test -f /etc/debian_version ; then
  84. mt --version|grep "mt-st" >/dev/null 2>&1
  85. if test $? -eq 1 ; then
  86. ready="drive status"
  87. fi
  88. fi
  89. ;;
  90. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement