OK. Gotta get this thing working so, i've made a
custom.sh for this.
1 - Create the
2 - Enable executable bit with
chmod +x /recalbox/share/system/custom.sh
vi /recalbox/share/system/custom.sh and paste the following contents on it:
#!/bin/bash recallog "Custom.sh to handle cec-client tv standby" case "$1" in stop) recallog "Turn off the TV" echo standby 0 | cec-client -s -d 1 & ;; *) recallog "Do nothing. custom.sh will only execute during shutdown" esac exit $?