1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-16 22:13:10 +02:00
openwrt-packages/cgminer/files/20-cgminer.hotplug

16 lines
332 B
Plaintext
Raw Permalink Normal View History

2012-05-11 07:24:22 +03:00
#!/bin/sh
# Copyright (C) 2012 Xiangfu (BTC: 12h6gdGnThW385JaX1LRMA8cXKmbYRTP8Q)
2012-05-11 07:24:22 +03:00
if [ "${PRODUCT}" = "67b/2303/400" ] && [ "$TYPE" = "0/0/0" ] && [ "$INTERFACE" = "255/0/0" ]; then
case "$ACTION" in
add)
killall -s 9 sleep
killall -s 9 cgminer
2012-05-18 13:05:32 +03:00
sleep 30 && /etc/init.d/cgminer start &
2012-05-11 07:24:22 +03:00
;;
remove)
;;
esac
fi