Thanks for you reply.
So...first i need to install screen.
After that i need to create a .sh file...what do i put inside the.sh file?
The complete line command to start mining?
And then inside rc.local i put:
cd /home/pi/cgminer
screen -dmS cgminer ./cgminerSHfile.sh
Is this correct?
Inside the .SH file you should put....
"./cgminer -o stratum+tcp://solo.ckpool.org:3333 -u mybtcaddress --gekko-2pac-freq 200"