Start und Shutdown Script with GPIO

  • Hello,

    I used many years OSMC Build on my Pi1.

    I've recentrly changed to Libreelec because I was told, that is faster on an Pi1.

    So I wanted to reinstall the Script for Start and Shutdown my Pi with the GPIO Pins and my used button.

    But my linux knowledge is very basic and I couldnt make it work.

    May somebody have a look and change the things that need to be down for Libreelec

    1.

    Code
    nano /storage/shutdown.sh


    2.

    3.

    Code
    chmod +x /storage/shutdown.sh

    4.

    Code
    nano /storage/.config/autostart.sh

    5.

    Code
    (
    /storage/shutdown.sh -d 
    )&


    br

    50_Cent