[OpenWrt Wiki] Attach functions to a push button
openwrt.org › docs › guide-userThe first step is to find out the internal name of the button you want to use: some images use generic names such as BTN_1, BTN_2, others have more specific ones like reset, wps, etc. Run the following: mkdir-p / etc / hotplug.d / button cat << "EOF" > / etc / hotplug.d / button / buttons logger "the button was ${BUTTON} and the action was ${ACTION} " EOF
Reset button performs factory reset on touch on MR200v1 - OpenWrt
bugs.openwrt.org › indexApr 03, 2021 · FS#3663 - Reset button performs factory reset on touch on MR200v1. Using TP-link MR200v1 with OpenWrt 19.07.6, r11278-8055e38794 without any modifications, just a slight touch on a reset button performs a factory reset. It is caused by this line https://github.com/openwrt/openwrt/blob/1d412235a57f3359d1c7bb63bfebce50c56caee6/package/base-files/files/etc/rc.button/reset#L26.