mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-12-01 20:15:19 +02:00
16 lines
332 B
Bash
16 lines
332 B
Bash
#!/bin/sh
|
|
|
|
# Copyright (C) 2012 Xiangfu (BTC: 12h6gdGnThW385JaX1LRMA8cXKmbYRTP8Q)
|
|
|
|
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
|
|
sleep 30 && /etc/init.d/cgminer start &
|
|
;;
|
|
remove)
|
|
;;
|
|
esac
|
|
fi
|