From 075df650cd0b0abb0b139ecba67082096503a39b Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 20 Mar 2008 08:33:58 +0000 Subject: [PATCH] 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 --- bacula/scripts/mtx-changer.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..." -- 2.39.5