mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-25 23:22:28 +02:00
f5c5a97a5c
you may needs modify the cgminer user
14 lines
245 B
Bash
Executable File
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
|
|
}
|