I've been playing around with my Pi on a battery recently. I have the Pi set up so that I can SSH into it. Using the standard commands(
sudo shutdown -h now) to shutdown work at bringing the Pi down, but because I am across SSH, I have no idea when it is good to pull the plug. The Pi then reboots, as it's receiving power. At which point I can log back in over SSH and start over.
Ideally, I would like it if my Pi stopped pulling power after the halt, as my battery automatically shuts off after 10 seconds of no power drawn. But, If I could just figure out when it would be safe to manually pull the plug, I would be happy.
TL:DR How do I determine when I can pull the power from a Pi not connected to a screen? Is there a way for it to not draw power after shutting down?