Don't understand the #!/bin/bash
So I did a few web searches on 'linux startup batch' and thought maybe you were referring to .bashrc.
I was using /etc/rc.local for the autostart before.
I added your command line to the end of the .bashrc file but it doesn't start mining.
Didn't work in the rc.local file either.
Also when I SSH in and try screen -r bfgminer
I get
-bash: -screen: command not found
So, what am I doing wrong?
Not .bashrc , copy the stuff people posted above into a text file and name it something like:
bfgminerstart.sh
Then, chmod 777 bfgminerstart.sh to make it executable.
Then you can run the script with ./bfgminerstart.sh
Also it looks like you're going to have to install screen for your linux distro with that error msg.
Installed screen and created the .sh file. Thanks for explaining that.
It kept telling me there was no directory or file by that name until I removed the part about the log file.
Now it doesn't give me an error but doesn't start mining either.
Try to resume the screen and there is no screen to be resumed.