From: Kern Sibbald Date: Thu, 20 Mar 2008 08:33:58 +0000 (+0000) Subject: Backport Solaris fix for mt detection in mtx-changer X-Git-Tag: Release-2.2.9-b7~54 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=075df650cd0b0abb0b139ecba67082096503a39b;p=bacula%2Fbacula Backport Solaris fix for mt detection in mtx-changer git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@6644 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/scripts/mtx-changer.in b/bacula/scripts/mtx-changer.in index 845321fc8c..67a7d5daaf 100644 --- a/bacula/scripts/mtx-changer.in +++ b/bacula/scripts/mtx-changer.in @@ -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..."