Advertisement
Guest User

Easysetup S9

a guest
Jan 21st, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.87 KB | None | 0 0
  1. #!/bin/bash
  2. chmod 7777 /config/bmminer.conf
  3. chmod 7777 /config/network.conf
  4.  
  5. cp /config/bmminer.conf /config/bmminer.conf.backup
  6. cp /config/network.conf /config/network.conf.backup
  7.  
  8. rm /config/bmminer.conf
  9. rm /config/network.conf
  10.  
  11. touch /config/bmminer.conf
  12. touch /config/network.conf
  13.  
  14. echo "{"                                                            >> /config/bmminer.conf
  15. echo "\"pools\" : ["                                                            >> /config/bmminer.conf
  16. echo "{"                                                            >> /config/bmminer.conf
  17. echo "\"url\" : \"stratum.antpool.com:3333\","                                                            >> /config/bmminer.conf
  18. echo "\"user\" : \"test.$1\","                                                            >> /config/bmminer.conf
  19. echo "\"pass\" : \"123\""                                                            >> /config/bmminer.conf
  20. echo "},"                                                            >> /config/bmminer.conf
  21. echo "{"                                                            >> /config/bmminer.conf
  22. echo "\"url\" : \"stratum.antpool.com:3333\","                                                            >> /config/bmminer.conf
  23. echo "\"user\" : \"test.$2\","                                                            >> /config/bmminer.conf
  24. echo "\"pass\" : \"123\""                                                            >> /config/bmminer.conf
  25. echo "},"                                                            >> /config/bmminer.conf
  26. echo "{"                                                            >> /config/bmminer.conf
  27. echo "\"url\" : \"stratum.antpool.com:3333\","                                                            >> /config/bmminer.conf
  28. echo "\"user\" : \"test.$3\","                                                            >> /config/bmminer.conf
  29. echo "\"pass\" : \"123\""                                                            >> /config/bmminer.conf
  30. echo "}"                                                            >> /config/bmminer.conf
  31. echo "]"                                                            >> /config/bmminer.conf
  32. echo ","                                                            >> /config/bmminer.conf
  33. echo "\"api-listen\" : "true","                                                            >> /config/bmminer.conf
  34. echo "\"api-network\" : "true","                                                            >> /config/bmminer.conf
  35. echo "\"api-groups\" : \"A:stats:pools:devs:summary:version\","                                                            >> /config/bmminer.conf
  36. echo "\"api-allow\" : \"A:0/0,W:*\","                                                            >> /config/bmminer.conf
  37. echo "\"bitmain-use-vil\" : "true","                                                            >> /config/bmminer.conf
  38. echo "\"bitmain-freq\" : \"550\","                                                            >> /config/bmminer.conf
  39. echo "\"bitmain-voltage\" : \"0706\","                                                            >> /config/bmminer.conf
  40. echo "\"multi-version\" : \"1\""                                                            >> /config/bmminer.conf
  41. echo "}"                                                            >> /config/bmminer.conf
  42.  
  43.  
  44. echo "hostname=miner$4"                    >>  /config/network.conf
  45. echo "ipaddress=10.0.0.$5"                  >> /config/network.conf
  46. echo "netmask=255.255.255.0"                              >> /config/network.conf
  47. echo "gateway=10.0.0.138"                              >> /config/network.conf
  48. echo "dnsservers=\"8.8.8.8"\"    >> /config/network.conf
  49.  
  50. /etc/init.d/bmminer.sh restart >/dev/null 2>&1
  51. /etc/init.d/network.sh
  52. /etc/init.d/avahi restart > /dev/null
  53. #echo "root:antMiner Configuration:23c2a2d78c0d20ec069097d7d20c4392" >> /config/lighttpd-htdigest.user
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement