#!/bin/sh echo "starting"; TARGETSIZE="2747537000" while true; do echo "downloading" curl -C - -O --disable-epsv ftp://ftp.asus.com.tw/pub/ASUS/EeePC/SourceCode/epc-1.6.1-src.tgz echo "checking size" SIZE=$(ls -l epc-1.6.1-src.tgz | cut -f5 -d' ') echo $SIZE if [ $TARGETSIZE -lt $SIZE ] then break; fi echo "failed"; sleep 5; done echo "success";