1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2025-04-21 12:27:27 +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,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