I installed Retropie (rasp pi 1, model b) and afterwards kodi (Helix 14.2, from experimental packages). I managed to make it bottable on start up. I even managed to enable my cec-controller.
Now the problem is that everytime i hit (exit , power off system OR reboot) it always goes back to ES. This is where i thought about scripts (which i am planning to run through specific app called advanced launcher).
So i really need 1 script to try (i dont know if it will work though..):
What i want the script to do: It will SAFELY power off (completely) my system (smth like shutdown -P now or smth similar). This script would be run through Advanced Launcher’s menu (or in other way-i am open to ideas). I am a linux (and scripting) noob so i do not have the knowledge to do it.