=================================================================== RCS file: /cvs/palm/manage_pre/manage_pre,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- palm/manage_pre/manage_pre 2010/03/10 19:35:40 1.8 +++ palm/manage_pre/manage_pre 2010/07/12 18:37:52 1.9 @@ -1,5 +1,5 @@ #!/bin/sh -# $AFresh1$ +# $AFresh1: manage_pre,v 1.8 2010/03/10 19:35:40 andrew Exp $ # Copyright (c) 2010 Andrew Fresh # @@ -60,7 +60,21 @@ $SUDO mkdir -p $_mount_point $SUDO chgrp users $_mount_point $SUDO chmod g+w $_mount_point - $SUDO /sbin/mount $_dev $_mount_point && echo Mounted Pre on $_mount_point + + $SUDO /sbin/mount $_dev $_mount_point 2> /dev/null + local _status=$? + + if [ "$_status" != 0 ]; then + echo -n "Waiting for $_dev to be ready " + while [ "$_status" != 0 ]; do + echo -n . + sleep 1 + $SUDO /sbin/mount $_dev $_mount_point 2> /dev/null + _status=$? + done + echo + fi + echo Mounted Pre on $_mount_point } synchronize() {