When I have this in rc.local:
/usr/local/bin/ds4drv --led 000008 &
exit 0
I get this error when booting into the CLI:
[ OK ] Started Getty on tty1.
[ OK ] Reached target Login Prompts.
[ OK ] Started LSB: Start NTP daemon.
[error][daemon] 'hcitool clock' returned error. Make sure your bluetooth device is powered up with 'hciconfig hciX up'.
[ OK ] Started LSB: start Samba daemons for the AD DC.
[ OK ] Started LSB: start Samba NetBIOS nameserver (nmbd).
Starting LSB: start Samba SMB/CIFS daemon (smbd)...
[ OK ] Started Configure Bluetooth Modems connected by UART.
Starting Load/Save RF Kill Switch Status of rfkill1...
Starting Bluetooth service...
[ OK ] Started Load/Save RF Kill Switch Status of rfkill1.
[ OK ] Started Bluetooth service.
Try setting your Pi to boot into the CLI and see if you have the same error.
It looks to me like something to do with BT isn't initializing in time for the rc.local entry. Does anyone know why this might be and how to rectify it?
Thanks