X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Famverify.sh.in;h=21e111d4a7ba7441adaa3df6eb82e0465aab003b;hb=d3b2175e084f88c8736ad7073eacbf4670147aec;hp=451da620e326402a210325a1c8bc8021def936b8;hpb=34197d9f46a5f4e944378cbb65fca32ee0eec7b9;p=debian%2Famanda diff --git a/server-src/amverify.sh.in b/server-src/amverify.sh.in index 451da62..21e111d 100644 --- a/server-src/amverify.sh.in +++ b/server-src/amverify.sh.in @@ -373,8 +373,15 @@ while [ $SLOT -lt $SLOTS ]; do fi report "Using device $DEVICE" $Echon "Waiting for device to go ready..." - until eval $DEVICE_READY >/dev/null 2>&1; do + count=1800 + until eval $DEVICE_READY > $TEMP/ammt.out 2>&1; do + [ count -lt 0 ] \ + && report "Device not ready" \ + && report "`cat $TEMP/ammt.out`" \ + && report cat $TEMP/ammt.out >> $DEFECTS \ + && break; sleep 3 + count=`expr $count - 3` done $Echon "Rewinding..." ERRORS=0 @@ -424,8 +431,15 @@ while [ $SLOT -lt $SLOTS ]; do if [ $Echon = echon ]; then $Echon "Waiting for device to go ready..." fi - until eval $DEVICE_READY >/dev/null 2>&1; do + count=1800 + until eval $DEVICE_READY > $TEMP/ammt.out 2>&1; do + [ count -lt 0 ] \ + && report "Device not ready" \ + && report "`cat $TEMP/ammt.out`" \ + && report cat $TEMP/ammt.out >> $DEFECTS \ + && break; sleep 3 + count=`expr $count - 3` done if [ $Echon = echon ]; then $Echon "Reading..."