Some users report that Raspberry Pi /etc/rc.local script is not executed at startup.

The truth is that this script is executed at startup but it is executed before login.

For this reason, if you have a printf in that script it will be executed but you will not be able to see it.

In order to fix this issue, please write your init code in /etc/bash.bashrc.rc.local_