From: Kern Sibbald Date: Thu, 20 Mar 2008 08:28:33 +0000 (+0000) Subject: Fix mtx-changer.in for broken Debian mt program X-Git-Tag: Release-2.2.9-b7~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1166af958d4c8754810c53586383e761e08d9ccf;p=bacula%2Fbacula Fix mtx-changer.in for broken Debian mt program git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@6641 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/scripts/mtx-changer.in b/bacula/scripts/mtx-changer.in index 0b475a672d..845321fc8c 100644 --- a/bacula/scripts/mtx-changer.in +++ b/bacula/scripts/mtx-changer.in @@ -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 diff --git a/bacula/technotes-2.1 b/bacula/technotes-2.1 index 79e785b632..c4a977261e 100644 --- a/bacula/technotes-2.1 +++ b/bacula/technotes-2.1 @@ -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