RemotePi Board

OK, but it doesn’t work :frowning:

For openelec this script is needed to shutdown complete:

OpenElec and RasPlex

    Note : For RasPlex 0.6.0 and newer this script does not need to be installed, RasPlex 0.6.0 has this functionality already built-in.
    Log on using PuTTY and create a script called shutdown.sh in the .config folder and copy and paste the following contents
    #!/bin/bash
    if [ "$1" != "reboot" ]; then
      sleep 3
      GPIOpin=15
      GPIOpin1=14
      echo "$GPIOpin" > /sys/class/gpio/export
      # execute shutdown sequence on pin
      echo "out" > /sys/class/gpio/gpio$GPIOpin/direction
      echo "1" > /sys/class/gpio/gpio$GPIOpin/value
      usleep 125000
      echo "0" > /sys/class/gpio/gpio$GPIOpin/value
      usleep 200000
      echo "1" > /sys/class/gpio/gpio$GPIOpin/value
      usleep 400000
      echo "0" > /sys/class/gpio/gpio$GPIOpin/value
      # set GPIO 14 high to feedback shutdown to RemotePi Board
      # because the irswitch.sh has already been terminated
      echo "$GPIOpin1" > /sys/class/gpio/export
      echo "out" > /sys/class/gpio/gpio$GPIOpin1/direction
      echo "1" > /sys/class/gpio/gpio$GPIOpin1/value
      sleep 3
    fi
    After saving the file, mark it as executable with
    chmod +x shutdown.sh
    When you now select the 'Power off system' from the menu in OpenElec or RasPlex, the RemotePi Board will cut the power after the system was shut down.
    Please note that the above script works only with newer versions of OpenElec (tested with 4.2.1), earlier versions of OpenElec did not wait for shutdown.sh to complete before halting.

You see this at the end of the instructions.
And for osmc?

Thank’s