On 18 December 2013 18:35, Bastian Bittorf <[email protected]> wrote: > on a 'TP-LINK TL-WDR4900 v1' there is a button labeled > 'WPS/reset'. when i press it, i get a hotplug call with > > $BUTTON = reset and > $ACTION = pressed / released > > after this the router restarts. who does this? procd?
Hi, It's from a kernel module named gpio-button-hotplug. Then was parsed by hotplug to call /etc/rc.button/reset to do the reboot. > do i have a chance to relabel this button to e.g. 'wps' > without recompiling? I guess no. It's hard-coded in the the dts file. Maybe you can modify /etc/rc.button/reset to pretend it's a wps button. haha [1] http://lxr.free-electrons.com/source/include/uapi/linux/input.h#L609 [2] target/linux/mpc85xx/patches-3.10/140-powerpc-85xx-tl-wdr4900-v1-support.patch Hope this helps. yousong _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
