2010-05-18 08:24:59 +00:00
|
|
|
#!/bin/sh
|
|
|
|
TIMESTART=`date +%s`
|
|
|
|
while [ 1 ]
|
|
|
|
do
|
|
|
|
echo 'Syncing...'
|
2010-06-05 07:39:25 +00:00
|
|
|
unison $1 $2 $3 $4
|
|
|
|
TIME=$((`date +%s`-$TIMESTART))
|
2010-05-18 08:24:59 +00:00
|
|
|
echo $TIME
|
|
|
|
if [ $TIME -ge 50 ]
|
2010-06-05 07:39:25 +00:00
|
|
|
then
|
2010-05-18 08:24:59 +00:00
|
|
|
break
|
|
|
|
fi
|
|
|
|
sleep 1
|
|
|
|
done
|