Root/cgminer/files/20-cgminer.hotplug

Source at commit 25b0a63d4dbda61c994166c906ccb692c3a1cf5f created 7 years 5 months ago.
By Xiangfu, cgminer: update to 2.10.4, include root-files
1#!/bin/sh
2
3# Copyright (C) 2012 Xiangfu (BTC: 12h6gdGnThW385JaX1LRMA8cXKmbYRTP8Q)
4
5#FT232
6if [ "${PRODUCT}" = "403/6001/600" ] && [ "${INTERFACE}" = "255/255/255" ] && [ "$TYPE" = "0/0/0" ]; then
7    case "$ACTION" in
8        add)
9            /etc/init.d/cgminer stop
10            /etc/init.d/cgminer start &
11            ;;
12        remove)
13            ;;
14    esac
15fi
16
17#PL2303
18if [ "${PRODUCT}" = "67b/2303/400" ] && [ "$TYPE" = "0/0/0" ] && [ "$INTERFACE" = "255/0/0" ]; then
19    case "$ACTION" in
20        add)
21            /etc/init.d/cgminer stop
22            /etc/init.d/cgminer start &
23            ;;
24        remove)
25            ;;
26    esac
27fi
28

Archive Download this file



interactive