Hello,
I am trying to shutdown a Pi with Amp+ from an SSH session with HomeKit.
The issue I am having is that I am not able to log off from the SSH session in time before the Pi shuts down. This throws an error in HomeKit.
Normally, the command below works, but HiFiBerryOS doesn't have logind running:
shutdown -h +1
exit
I've tried lots of workarounds, various forms of:
(sleep 5; shutdown)& exit
The shell doesn't spawn a new process no matter what I try, and runs the commands in order, shutting down the Pi before I can exit the SSH session.
Any thoughts on how to have a delayed shutdown so we can properly exit the SSH session?
Loving this project, great work!