Hi guys. I am running Minimal on an Intel NUC for an XBMC HTPC. I am running an MCE remote control with LIRC. I want to be able to map a button on the remote in the OS to reboot the system in case XBMC crashes or locks. I have a button mapped to reboot in XBMC but if XBMC itself stops working then this would be a fallback.

I have a basic understanding of linux and I was messing around with irexec but could not make it work.

Thanks
Ernie