I have a situation:
This simple example set input directy to output, so I have two problems:
1º If this input active then output is ON, and if I reboot the RPI, the output stay on, there is any away
that if reboot the output turn off?
2º if I turn on the input during boot, even when the boot is finished the output is not on, the input has to be turned off and on again for the output is on, there is any away to chek this?
you have to synchronize the state at the boot time by issuing cmd:all
And I can do this how?