rc.local 1.1 KB

12345678910111213141516171819202122232425262728
  1. #!/bin/sh -e
  2. #
  3. # rc.local
  4. #
  5. # This script is executed at the end of each multiuser runlevel.
  6. # Make sure that the script will "" on success or any other
  7. # value on error.
  8. #
  9. # In order to enable or disable this script just change the execution
  10. # bits.
  11. #
  12. # By default this script does nothing.
  13. # Print the IP address
  14. _IP=$(hostname -I) || true
  15. if [ "$_IP" ]; then
  16. printf "My IP address is %s\n" "$_IP"
  17. fi
  18. #bfgminer
  19. #su - pi -c 'screen -dmS miner /home/pi/bfgminer/bfgminer --scrypt -o stratum+tcp://litecoinpool.org:3333 -u wareck.1 -p 1,d=128 -S all --set MLD:clock=660 --set ZUS:clock=328 --set ZUS:chips=6'
  20. #su - pi -c 'screen -dmS miner /home/pi/bfgminer/bfgminer --scrypt -o stratum+tcp://eu-01.miningrigrentals.com:3333/#skipcbcheck#xnsub -u wareck.262669 -p x -S all --set MLD:clock=660 --set ZUS:clock=328 --set ZUS:chips=6 --api-allow 127.0.0.1 --api-listen'
  21. su - pi -c 'screen -dmS miner /home/pi/bfgminer/bfgminer --scrypt -S all --set MLD:clock=660 --api-allow 127.0.0.1 --api-listen'
  22. iptables-restore < /etc/iptables.ipv4.nat
  23. #OKcash Node Start
  24. su - pi -c 'okcashd --printtoconsole'
  25. exit 0