mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-22 15:05:20 +02:00
cgminer: hotplug.d sleep 8 before start cgminer fix the MHS display wrong on api
This commit is contained in:
parent
21c03142d1
commit
48ca65d95d
@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2012 Xiangfu Liu <xiangfu@openmobilefree.net>
|
# Copyright (C) 2012 Xiangfu Liu <xiangfu@openmobilefree.net>
|
||||||
# bitcoin: 1BQvUsuQBYUyVuX4jjFk4dVBpWJVQEUHTZ
|
# bitcoin: 12h6gdGnThW385JaX1LRMA8cXKmbYRTP8Q
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Copyright (C) 2009 OpenWrt.org
|
# Copyright (C) 2012 Xiangfu (BTC: 12h6gdGnThW385JaX1LRMA8cXKmbYRTP8Q)
|
||||||
|
|
||||||
if [ "${PRODUCT}" = "67b/2303/400" ] && [ "$TYPE" = "0/0/0" ] && [ "$INTERFACE" = "255/0/0" ]; then
|
if [ "${PRODUCT}" = "67b/2303/400" ] && [ "$TYPE" = "0/0/0" ] && [ "$INTERFACE" = "255/0/0" ]; then
|
||||||
case "$ACTION" in
|
case "$ACTION" in
|
||||||
add)
|
add)
|
||||||
killall -s 9 sleep
|
killall -s 9 sleep
|
||||||
killall -s 9 cgminer
|
killall -s 9 cgminer
|
||||||
sleep 1 && /etc/init.d/cgminer start &
|
sleep 8 && /etc/init.d/cgminer start &
|
||||||
;;
|
;;
|
||||||
remove)
|
remove)
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user