1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2025-04-21 12:27:27 +03:00

cgminer: sleep 10s before cgminer start, this make Utility display correct

This commit is contained in:
Xiangfu
2012-05-18 13:12:16 +08:00
parent 5b1da6f024
commit 1eeb495841
3 changed files with 5 additions and 9 deletions

17
cgminer/files/cgminer.init Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh /etc/rc.common
START=99
POOL1="-o http://us.ozco.in:8331 -O xiangfu.0:x"
POOL2="-o http://pool.ABCPool.co:8332 -O xiangfu.0:x"
POOL3="-o http://pit.deepbit.net:8332 -O xiangfu.z@gmail.com_0:x"
POOLS="$POOL1 $POOL2 $POOL3"
start() {
DEVS=`find /dev/ -type c -name "ttyUSB*" | sed 's/^/-S/' | sed ':a;N;$!ba;s/\n/ /g'`
sleep 5 && cgminer -q -T --api-network --api-listen $POOLS $DEVS &
}
stop() {
killall -s 9 cgminer
}