Bitcoin Forum

Other => Beginners & Help => Topic started by: Zaccaro on September 10, 2013, 03:32:55 PM



Title: bfgminer on OpenWRT issue
Post by: Zaccaro on September 10, 2013, 03:32:55 PM
Hi Bitcoin Community.

I connected my Mining HW (SHA256) to the USB Port of my router.
BFGminer (v3.2.0) is mining fine if I start it manually via SSH.
I wrote an init.d script to let the router mine automatically from startup. The mining does start automatically but I have no more access to the internet when the script is active. I have to disable the script to get the LAN to WAN connection.

This is the script. Maybe you can tell me whats wrong.
Code:
#!/bin/sh /etc/rc.common
# bfgminer script

START=94
STOP=100

start() {

        bfgminer -o pool.XXX:8332 -u XXX -p XXX
}

stop() {
         bfgminer -X quit

}


I tried to start mining usinf #screen and & for running in background to be able to close the SSH-con but that doesn't work and would only be a workaround.

Some help would be nice.