1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-07-05 06:06:42 +03:00
openwrt-packages/cgminer/files/cgminer
Xiangfu f5c5a97a5c cgminer: add /etc/init.d/cgminer for autostart
you may needs modify the cgminer user
2012-03-19 16:00:01 +08:00

14 lines
245 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=99
POOL="-o http://pool.ABCPool.co -O xiangfu.0:x"
DEV="-S /dev/ttyUSB0"
PARAMETER="$DEV $POOL"
start() {
cgminer -q -T --api-network --api-listen $PARAMETER> /dev/null 2>&1 &
}
stop() {
killall -s 9 cgminer
}