1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-07-05 05:23:15 +03:00

cgminer: hotplug.d sleep 8 before start cgminer fix the MHS display wrong on api

This commit is contained in:
Xiangfu 2012-05-18 14:35:31 +08:00
parent 21c03142d1
commit 48ca65d95d
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#
# Copyright (C) 2012 Xiangfu Liu <xiangfu@openmobilefree.net>
# bitcoin: 1BQvUsuQBYUyVuX4jjFk4dVBpWJVQEUHTZ
# bitcoin: 12h6gdGnThW385JaX1LRMA8cXKmbYRTP8Q
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.

View File

@ -1,15 +1,15 @@
#!/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
case "$ACTION" in
add)
killall -s 9 sleep
killall -s 9 cgminer
sleep 1 && /etc/init.d/cgminer start &
sleep 8 && /etc/init.d/cgminer start &
;;
remove)
;;
esac
fi
esac
fi