]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix mtx-changer.in for broken Debian mt program
authorKern Sibbald <kern@sibbald.com>
Thu, 20 Mar 2008 08:28:33 +0000 (08:28 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 20 Mar 2008 08:28:33 +0000 (08:28 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@6641 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/scripts/mtx-changer.in
bacula/technotes-2.1

index 0b475a672dff6f769c16203169aed6fdeec7609a..845321fc8cf0bb17678cbec0dc727fda6cac7fdc 100644 (file)
@@ -52,6 +52,10 @@ MTX=@MTX@
 # SunOS     No Additional Sense
 # FreeBSD   Current Driver State: at rest.
 # Linux     ONLINE
+#  Note Debian has messed up their mt. When no tape is in the
+#    drive it waits 2 minutes. When a tape is in the drive, it
+#    prints user unfriendly output.
+#
 
 OS=`uname`
 case ${OS} in
@@ -61,8 +65,12 @@ case ${OS} in
   FreeBSD)
     ready="Current Driver State: at rest."
     ;;
-  *)
-    ready="ONLINE"
+  Linux)
+    if test -e /etc/debian_version ; then
+       ready="drive status"
+    else
+       ready="ONLINE"
+    fi
   ;;
 esac
 
index 79e785b6321bea1b9cb037e5fde5146daa78a71f..c4a977261e036c017c2b51e09596975356827a24 100644 (file)
@@ -1,6 +1,8 @@
               Technical notes on version 2.2
 
 General:
+20Mar08
+kes  Fix mtx-changer.in for broken Debian mt program.
 19Mar08
 kes  Massive commit of all fixes and back ports to create 2.2.9
 18Mar08