Using the Khadas provided latest OpenWRT 19.08 image, when I attempt to use the reset button, it only reboots the device. Reviewing the reset code in /etc/rc.button/reset, appears it should reset to factory defaults if held for 5 or more seconds.
I tried holding the reset button for 10+ seconds however only reboots the device. If I run the commands manually at the command line specified in the script below (jffs2reset -y && reboot &), process resets the device correctly as expected.
@hyphop Has anyone seen this behavior before?
if [ "$SEEN" -lt 1 ] then echo "REBOOT" > /dev/console sync reboot elif [ "$SEEN" -ge 5 -a -n "$OVERLAY" ] then echo "FACTORY RESET" > /dev/console jffs2reset -y && reboot & fi