Enabling bluetooth

Why I wanted the PS3 remote connected was to use it within RetroPie.
I got all working perfectly … with the standard image from RetroPie was even easier.

The issue I had with the connection troubles before I solved with a few udev scripts

pi@retropie ~ $ cat /etc/udev/rules.d/10-hci0.rules 
# Set bluetooth power up
ACTION=="add", KERNEL=="js[0-9]*", SUBSYSTEM=="input", SUBSYSTEMS=="bluetooth", RUN+="/usr/sbin/hciconfig hci0 pscan"

# Run pairing command when a joystick is connected through USB
ACTION=="add", KERNEL=="js[0-9]*", SUBSYSTEM=="input", SUBSYSTEMS=="usb", RUN+="/opt/retropie/supplementary/ps3controller/sixpair"