Homepage Forums RetroPie Project Everything else related to the RetroPie Project Script file to safely shut down Kodi (installed through packages)

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #104291
    haris1977
    Participant

    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.

    Anyone can help with this one?

    Edit: To help someone out i found this:

    http://wiki.openelec.tv/index.php/Autostart.sh

    Is this my command?

    case “$1” in
    halt)
    # your commands here
    ;;
    poweroff)
    # your commands here
    ;;
    reboot)
    # your commands here
    ;;
    *)
    # your commands here
    ;;
    esac

    I suppose where it says # your commands here, it needs a command? And what is the complete script with command?

    Any help appreciated

Viewing 1 post (of 1 total)
  • The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.