Save Metadata upon using toggle switch to shutdown? Is this possible?
-
Hello all!! I hoping someone can help me with the subject. I am seeing all kinds of safe shutdown scripts across the internet for the pi but am also reading most of them are not saving metadata etc, when the shutdown is implemented from the button or toggle.
Is there anything that can be added before the shutdown code on the script to ensure this happens?
Thank you all for any examples or guidance you can give.
-
Which scripts ? As long as EmulationStation is shut down properly (i.e. without forcibly terminating the process), metadata saving shouldn't be an issue.
-
Thank you for replying @mitu. You have been incredibly helpful on everything.
I chose the script below. It seems like the only one I found that at least talks about emulation station in the code.
I am using both shutdown.sh and power.py because of their installation instructions.
Do you feel like this is a good one or am I missing things and if so could you or one of our fellow forum members point me in the proper direction so that I'm not rebuilding the wheel.
Setup:
https://github.com/orlandovald/arcade1up/blob/master/setup.shPower:
https://github.com/orlandovald/arcade1up/blob/master/scripts/power.pyThank you all again!!
-
Looks at the shutdown script, it seems it's trying to shutdown EmulationStation properly, so it should work.
-
@mitu Good deal. Thank you for the backup assurance. I thought I would be good with that one even though I have no clue how to code sadly.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.