The reset button scripts is in /etc/rc.button/reset
The script for switch is /etc/rc.button/BTN_8
So everything is configurable.