mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-12-03 07:08:27 +02:00
14 lines
245 B
Plaintext
14 lines
245 B
Plaintext
|
#!/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
|
||
|
}
|