From 6d780f710792a5853dd8d3217ae05885eb8f48a5 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 9 Jun 2004 13:12:42 +0000 Subject: [PATCH] Final changes git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1403 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/scripts/mtx-changer.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bacula/scripts/mtx-changer.in b/bacula/scripts/mtx-changer.in index f25467d434..6f237800c7 100644 --- a/bacula/scripts/mtx-changer.in +++ b/bacula/scripts/mtx-changer.in @@ -30,9 +30,12 @@ MTX=@MTX@ wait_for_drive() { - while ! mt -f $1 status >/dev/null 2>&1; do + for i in $(seq 180); do # Wait max 180 seconds + if mt -f $1 status >/dev/null 2>&1; then + break + fi # echo "Device $1 - not ready, retrying..." - sleep 5 + sleep 1 done } -- 2.39.5