Change Details
cgminer/files/20-cgminer.hotplug |
2 | 2 | |
3 | 3 | # Copyright (C) 2012 Xiangfu (BTC: 12h6gdGnThW385JaX1LRMA8cXKmbYRTP8Q) |
4 | 4 | |
5 | | if [ "${PRODUCT}" = "67b/2303/400" ] && [ "$TYPE" = "0/0/0" ] && [ "$INTERFACE" = "255/0/0" ]; then |
| 5 | #FT232 |
| 6 | if [ "${PRODUCT}" = "403/6001/600" ] && [ "${INTERFACE}" = "255/255/255" ] && [ "$TYPE" = "0/0/0" ]; then |
6 | 7 | case "$ACTION" in |
7 | 8 | add) |
8 | | killall -s 9 sleep |
9 | 9 | killall -s 9 cgminer |
10 | | sleep 30 && /etc/init.d/cgminer start & |
| 10 | ntpd -d -n -q -N -p 0.openwrt.pool.ntp.org \ |
| 11 | -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org && \ |
| 12 | /etc/init.d/cgminer start & |
| 13 | ;; |
| 14 | remove) |
| 15 | ;; |
| 16 | esac |
| 17 | fi |
| 18 | |
| 19 | #PL2303 |
| 20 | if [ "${PRODUCT}" = "67b/2303/400" ] && [ "$TYPE" = "0/0/0" ] && [ "$INTERFACE" = "255/0/0" ]; then |
| 21 | case "$ACTION" in |
| 22 | add) |
| 23 | killall -s 9 cgminer |
| 24 | ntpd -d -n -q -N -p 0.openwrt.pool.ntp.org \ |
| 25 | -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org && \ |
| 26 | /etc/init.d/cgminer start & |
11 | 27 | ;; |
12 | 28 | remove) |
13 | 29 | ;; |
Download the corresponding diff file