Root/cgminer/files/cgminer.init

Source at commit 25b0a63d4dbda61c994166c906ccb692c3a1cf5f created 7 years 5 months ago.
By Xiangfu, cgminer: update to 2.10.4, include root-files
1#!/bin/sh /etc/rc.common
2START=99
3
4POOL1="-o http://us.ozco.in:8331 -O xiangfu.0:x"
5POOL2="-o http://pool.ABCPool.co:8332 -O xiangfu.0:x"
6POOL3="-o http://pit.deepbit.net:8332 -O xiangfu.z@gmail.com_0:x"
7
8POOLS="$POOL1 $POOL2 $POOL3"
9
10start() {
11    DEVS=`find /dev/ -type c -name "ttyUSB*" | sed 's/^/-S/' | sed ':a;N;$!ba;s/\n/ /g'`
12    ntpd -d -n -q -N -p 0.openwrt.pool.ntp.org \
13        -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org && \
14    cgminer -q --api-allow "W:0/0" --api-listen $POOLS $DEVS &
15}
16
17stop() {
18    killall -s 9 cgminer
19}
20

Archive Download this file



interactive