Well finaly i got to putting om my new powerblock after putting in the script code it seemd like it went the same way as the previous version with the rebooting and all.
I removed the powerblock went in to the retropie setup and updated the installation script, then went to the drivers and installed the powerblock from there.
After a reboot it works like a charm now.
Retropie rocks !!