freicoin.sh.sample

This commit is contained in:
Davy Moedbeck
2013-09-20 12:36:14 +02:00
parent 6cd2d97dcd
commit 92d1190e7e

10
freicoin.sh.sample Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
#Replace this script with one of your own.
#Send the quit command to any cgminer instances running
echo "{\"command\":\"quit\"}" | nc 127.0.0.1 4028
#Kill vanityminer - inelegant, but works
#killall oclvanityminer
#Start Bitcoin mining with API access enabled for the above command in the future
export DISPLAY=:0
screen -dmS cgm cgminer -c ~/.cgminer/freicoin.conf --api-network --api-listen --api-allow W:127.0.0.1