Change hold reset button for 3 seconds to poweroff


#1

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?
thanks


#2

Yes of course. Find the following script

/etc/rc.button/reset

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


#3

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
/sbin/poweroff
#c reset_network
#c /etc/init.d/led restart