2012-05-11 07:24:22 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2012-05-18 09:35:31 +03:00
|
|
|
# Copyright (C) 2012 Xiangfu (BTC: 12h6gdGnThW385JaX1LRMA8cXKmbYRTP8Q)
|
2012-05-11 07:24:22 +03:00
|
|
|
|
2013-01-13 14:50:04 +02:00
|
|
|
#FT232
|
|
|
|
if [ "${PRODUCT}" = "403/6001/600" ] && [ "${INTERFACE}" = "255/255/255" ] && [ "$TYPE" = "0/0/0" ]; then
|
2012-05-11 07:24:22 +03:00
|
|
|
case "$ACTION" in
|
|
|
|
add)
|
|
|
|
killall -s 9 cgminer
|
2013-01-13 14:50:04 +02:00
|
|
|
ntpd -d -n -q -N -p 0.openwrt.pool.ntp.org \
|
|
|
|
-p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org && \
|
|
|
|
/etc/init.d/cgminer start &
|
|
|
|
;;
|
|
|
|
remove)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
#PL2303
|
|
|
|
if [ "${PRODUCT}" = "67b/2303/400" ] && [ "$TYPE" = "0/0/0" ] && [ "$INTERFACE" = "255/0/0" ]; then
|
|
|
|
case "$ACTION" in
|
|
|
|
add)
|
|
|
|
killall -s 9 cgminer
|
|
|
|
ntpd -d -n -q -N -p 0.openwrt.pool.ntp.org \
|
|
|
|
-p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org && \
|
|
|
|
/etc/init.d/cgminer start &
|
2012-05-11 07:24:22 +03:00
|
|
|
;;
|
|
|
|
remove)
|
|
|
|
;;
|
2012-05-18 09:35:31 +03:00
|
|
|
esac
|
|
|
|
fi
|