I don't know if someone has already posted this but
I recently found that the mtx-changer script was
failing on my Solaris 10 machines because of the
seq command in line 45 not included in the Solaris 10
base system.
The workaround is quite easy and goes like this :

wait_for_drive() {
#  for i in $(seq 180); do   # Wait max 180 seconds
  i=0
  while [ $i -ne 180 ]; do
    i=`expr $i + 1`
    if mt -f $1 status | grep ONLINE  >/dev/null 2>&1; then
      break
    fi
#   echo "Device $1 - not ready, retrying..."
    sleep 1
 done
}

Maybe it could be nice to include it in comment,
like the one about BSD....
--
        -- Sam


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to