Button Script For MBox

The OpenWRT port for the MBox has the hotplug package installed by default.
This package can provide for button control by simple scripts in the /etc/hotplug.d/button/
follder.

In this folder there is already a script called 01-button (with commented out lines).
Replace the contents of this script with the code below, to set the upper button for a
firmware shutdown and the lower button for a system reboot