From: Kern S. <ke...@si...> - 2007-08-16 14:24:45
|
On Thursday 16 August 2007 15:55, Peter Buschman wrote: > I've just committed the following minor change to > mtx-changer.in. The missing quotes around ${ready} were causing the > drive ready detection to fail (at least) on Solaris: > > Index: mtx-changer.in > =================================================================== > --- mtx-changer.in (revision 5002) > +++ mtx-changer.in (revision 5360) > @@ -108,7 +108,7 @@ > 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 | grep "${ready}" >/dev/null 2>&1; then > break > fi > debug "Device $1 - not ready, retrying..." Nice work :-) |