Date:2013-01-13 13:50:04 (11 years 2 months ago)
Author:Xiangfu
Commit:78fe5e43a1057af749a89b0acc1a23802c56363f
Message:cgminer: add both ft232 and pl2303 chip support on hotplug

Files: cgminer/files/20-cgminer.hotplug (1 diff)

Change Details

cgminer/files/20-cgminer.hotplug
22
33# Copyright (C) 2012 Xiangfu (BTC: 12h6gdGnThW385JaX1LRMA8cXKmbYRTP8Q)
44
5if [ "${PRODUCT}" = "67b/2303/400" ] && [ "$TYPE" = "0/0/0" ] && [ "$INTERFACE" = "255/0/0" ]; then
5#FT232
6if [ "${PRODUCT}" = "403/6001/600" ] && [ "${INTERFACE}" = "255/255/255" ] && [ "$TYPE" = "0/0/0" ]; then
67    case "$ACTION" in
78        add)
8            killall -s 9 sleep
99            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
17fi
18
19#PL2303
20if [ "${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 &
1127            ;;
1228        remove)
1329            ;;

Archive Download the corresponding diff file



interactive