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

bacula/scripts/mtx-changer.in

index 845321fc8cf0bb17678cbec0dc727fda6cac7fdc..67a7d5daafbe605b9bbf64654508477a28dbb875 100644 (file)
@@ -116,7 +116,7 @@ make_temp_file() {
 wait_for_drive() {
   i=0 
   while [ $i -le 300 ]; do  # Wait max 300 seconds
-    if mt -f $1 status | grep "${ready}" >/dev/null 2>&1; then
+    if mt -f $1 status 2>&1 | grep "${ready}" >/dev/null 2>&1; then
       break
     fi
     debug "Device $1 - not ready, retrying..."