The IR Power Button for RPi and LibreElec – how to configure?

I bought the IR PowerButton for RPI for my Raspberry PI 3 based Kodi player.

After the hardware install, I went to configure the linux to support it and have the POWEROFF command do a graceful shutdown of the OS instead of a ‘crash’.

Here are the instructions I was given: http://wiki.52pi.com/index.php/Power_But…_set_it_up

As you can see, they are NOT for LibreElec. Does anyone have reliable instructions on how to get this configured properly for a LibreElec on RPI3 Kodi box?

Thanks in advance!!!