For context I am using a raspberry PI3 but in the end might use a PI4 (but docs says they should behave the same).
I changed config.txt to allow my raspberry to wake from a halt state (with GPIO3). But is there a way to differentiate a normal boot with power supply from a boot after a halt ? I want my raspberry to only work when booted with GPIO3.
I've seen that it is possible to run commands in the rc.locale file, could I put "sudo halt" in that file, of will that never allow me to boot ?
Thank you for your time