I want to turn off hyperion lights if the system is turned off with the button or over shut down menu even if video is still playing.
So i have created shutdown.sh script with:
Code
#! /bin/sh
case "$1" in
halt)
# your commands here
/storage/.kodi/addons/service.hyperion/bin/hyperion-remote -c black
;;
poweroff)
# your commands here
/storage/.kodi/addons/service.hyperion/bin/hyperion-remote -c black
;;
reboot)
# your commands here
/storage/.kodi/addons/service.hyperion/bin/hyperion-remote -c black
;;
*)
;;
esac
Display More
But the command does not work. If i execute the command from the script it turns off the lights.
Any idea?