\home\pi\bfgminer-3.2.1
ok that would be ~/bfgminer-3.2.1
insert this as your bfgminer startup script:
#!/bin/bash
screen -S bfgminer -d -m su - pi /home/pi/bfgminer-3.2.1/.bfgminer
try than and see if it works
afterward you should be able to ssh in as [email protected] and execute:
screen -r bfgminer
this should bring up a bfgminer window with lots of debug info flying on screen.
todo: figure out how to garbage collect every N time period (e.g. 24 hrs) to create a rolling log
Try this to get the rolling log:
cp /home/pi/bfgminer-3.2.1/logs/activity.log /home/pi/bfgminer-3.2.1/logs/activity-`date +%s`.log
echo > /home/pi/bfgminer-3.2.1/logs/activity.log
echo will flush the file contents without deleting it, and bfgminer will just keep appending to that same file like nothing happened.