I have a power supply connected to Raspberry Pi through digital switcher. What I want to do is disable power supply when Pi ends shutting down process. Currently it works like this: There is a script that sets one of pins to HIGH status on start and keeps it. Pin switches off with the system and power supply is disabled.
I'm not sure if this is safe, because always before the Raspberry Pi 3 has been switched off completely, the ACT LED blinks three times and then goes out, but at the current setting it does not do that because Pi loses power earlier.
Can it work this way?