01-cgminer 502 B

123456789101112131415161718
  1. #!/bin/sh
  2. # Hook the Cgminer Configuration + /etc/init.d/cgminer restart
  3. echo '' >> /etc/config/ucitrack
  4. echo 'config cgminer' >> /etc/config/ucitrack
  5. echo -e '\toption init cgminer' >> /etc/config/ucitrack
  6. # Enable the cgminer service
  7. /etc/init.d/cgminer enable
  8. # Disable ntp service (Run once when start cgminer)
  9. /etc/init.d/sysntpd disable
  10. # Setup the cron job
  11. echo "*/5 * * * * /usr/bin/cgminer-monitor" | crontab -
  12. /etc/init.d/cron enable
  13. /etc/init.d/cron stop
  14. /etc/init.d/cron start