mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-25 10:20:37 +02:00
cgminer: sleep 10s before cgminer start, this make Utility display correct
This commit is contained in:
parent
5b1da6f024
commit
1eeb495841
@ -12,7 +12,7 @@ PKG_NAME:=cgminer
|
|||||||
PKG_VERSION:=20120516
|
PKG_VERSION:=20120516
|
||||||
PKG_REV:=b69d735cfe468c489a24677ffef1d6d998818cac
|
PKG_REV:=b69d735cfe468c489a24677ffef1d6d998818cac
|
||||||
# this is upstream version 2.4.1
|
# this is upstream version 2.4.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
|
||||||
@ -39,12 +39,8 @@ Cgminer is a multi-threaded multi-pool GPU, FPGA and CPU miner with ATI GPU
|
|||||||
monitoring, (over)clocking and fanspeed support for bitcoin and derivative
|
monitoring, (over)clocking and fanspeed support for bitcoin and derivative
|
||||||
coins. Do not use on multiple block chains at the same time!
|
coins. Do not use on multiple block chains at the same time!
|
||||||
endef
|
endef
|
||||||
# This package only enable the Icarus support. just connect your Icarus
|
|
||||||
# FPGA miner board to OpenWrt router(with USB HOST support)
|
|
||||||
# Run like:
|
|
||||||
# cgminer -S /dev/ttyUSB0 -o http://MINING.POOL.URL -O USER:PASS
|
|
||||||
|
|
||||||
CONFIGURE_ARGS += --disable-opencl --disable-adl --enable-icarus
|
CONFIGURE_ARGS += --disable-opencl --disable-adl --enable-icarus --enable-bitforce
|
||||||
TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
@ -59,9 +55,9 @@ define Package/cgminer/install
|
|||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cgminer-api $(1)/usr/bin
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cgminer-api $(1)/usr/bin
|
||||||
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgminer $(1)/usr/bin
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgminer $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(FILES_DIR)/cgminer $(1)/etc/init.d
|
$(INSTALL_BIN) $(FILES_DIR)/cgminer.init $(1)/etc/init.d/cgminer
|
||||||
|
|
||||||
$(CP) $(FILES_DIR)/20-icarus.hotplug $(1)/etc/hotplug.d/usb/20-icarus
|
$(CP) $(FILES_DIR)/20-cgminer.hotplug $(1)/etc/hotplug.d/usb/20-cgminer
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,cgminer))
|
$(eval $(call BuildPackage,cgminer))
|
||||||
|
@ -9,7 +9,7 @@ POOLS="$POOL1 $POOL2 $POOL3"
|
|||||||
|
|
||||||
start() {
|
start() {
|
||||||
DEVS=`find /dev/ -type c -name "ttyUSB*" | sed 's/^/-S/' | sed ':a;N;$!ba;s/\n/ /g'`
|
DEVS=`find /dev/ -type c -name "ttyUSB*" | sed 's/^/-S/' | sed ':a;N;$!ba;s/\n/ /g'`
|
||||||
cgminer -q -T --api-network --api-listen $POOLS $DEVS &
|
sleep 5 && cgminer -q -T --api-network --api-listen $POOLS $DEVS &
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
Loading…
Reference in New Issue
Block a user