safe shutdown - jedimatt42/tipi GitHub Wiki
Safe Shutdown of Raspberry PI
The OS running on your Raspberry PI is a wonderful, versatile, concurrent Linux operating system. Shutdown of the operating system to ensure there is no SD card activity when power loss occurs is crucial.
Some people think, oh Sd card corruption, that won't happen to me. But there are automated jobs embedded in the OS related to crucial security updates that may run at any time.
Built in
TIPI services provide 2 ways to easily shutdown your PI safely.
First, the web ui available at http://tipi.local:9900/ has a menu in the upper left corner. Shutdown is one of the menu items. Select it and a shutdown command will be issued. About 10 seconds later you can pull the power.
Second, the CALL TIPI
command from BASIC will load TIPI.TIPICFG, and there is a h
alt option that will do the same.
Custom options
The World Wide Web is a wonderful thing when looking for info about commodity consumer equipment like a Raspberry PI.
See this article for a versatile single button reset + shutdown option using a momentary switch: https://gilyes.com/pi-shutdown-button/
If you need to run a power indicator to a more visible location, see this article: https://howchoo.com/g/ytzjyzy4m2e/build-a-simple-raspberry-pi-led-power-status-indicator