Change hold reset button for 3 seconds to poweroff

is there a way to configure the reset button? if I recall holding it down for 3 seconds restarts the network (10 resets router to default) . can it be converted to run a custom command like /sbin/poweroff instead resetting the network?

Yes of course. Find the following script


Check the content and you will find a way to modify.

Thanks! I just slipped it in here and commented out the old command in
/usr/bin/button_released at the bottom

elif [ “$reset_pressed_duration” -gt 3 ]; then
#c reset_network
#c /etc/init.d/led restart