massflash.sh 481 B

12345678910111213141516171819202122
  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. done
  13. echo " found"
  14. $flashscript
  15. echo "-----------------------------------------------------------------------"
  16. echo
  17. done