massflash.sh 492 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. flashscript=`dirname $0`
  3. flashscript="${flashscript}/autoflash.sh"
  4. if [ ! -x $flashscript ]; then
  5. echo "Error, failed to find autoflash support script at '$flashscript'"
  6. exit 1
  7. fi
  8. while /bin/true; do
  9. echo -en "Waiting for virgin router to appear on 192.168.0.1 ..."
  10. while ! ping -n -c 1 -W 1 192.168.0.1 > /dev/null; do
  11. echo -en "."
  12. sleep 1
  13. done
  14. echo " found"
  15. $flashscript
  16. echo "-----------------------------------------------------------------------"
  17. echo
  18. done