OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
Source at commit 78fe5e43a1057af749a89b0acc1a23802c56363f created 11 years 2 months ago. By Xiangfu, cgminer: add both ft232 and pl2303 chip support on hotplug | |
---|---|
1 | #!/bin/sh |
2 | |
3 | # Copyright (C) 2012 Xiangfu (BTC: 12h6gdGnThW385JaX1LRMA8cXKmbYRTP8Q) |
4 | |
5 | #FT232 |
6 | if [ "${PRODUCT}" = "403/6001/600" ] && [ "${INTERFACE}" = "255/255/255" ] && [ "$TYPE" = "0/0/0" ]; then |
7 | case "$ACTION" in |
8 | add) |
9 | killall -s 9 cgminer |
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 & |
27 | ;; |
28 | remove) |
29 | ;; |
30 | esac |
31 | fi |
32 |