mm-avalon6-upgrade 364 B

12345678910111213141516
  1. #!/bin/sh
  2. # MM firmware upgrade scripts
  3. FIRMWARE=mm.mcs
  4. cd /tmp
  5. if [ ! -f "$FIRMWARE" ]; then
  6. wget http://downloads.canaan-creative.com/software/avalon6/mm60/latest/mm.mcs -O ./$FIRMWARE
  7. fi
  8. /etc/init.d/cron stop
  9. /etc/init.d/cgminer stop
  10. # wait cgminer stop finish
  11. sleep 2
  12. mm-tools
  13. # wait mm reboot
  14. sleep 25
  15. /etc/init.d/cgminer start
  16. /etc/init.d/cron start