Script file to safely shut down Kodi (installed through packages)

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

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of haris1977 haris1977 1 year, 8 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #104291
    Profile photo of haris1977
    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)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar