#18190: Archer C7 v2 reset button doesn't work
--------------------------+-----------------------------------
Reporter: morfik | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: base system | Version: Barrier Breaker 14.07
Resolution: | Keywords: reset, button
--------------------------+-----------------------------------
Comment (by Anton van Bohemen <avbohemen@…>):
Actually, the WPS and Reset button are the same button on the Archer C7
v2. So, the script should be called wps, and contain something like:
{{{
#!/bin/sh
[ "${ACTION}" = "released" ] || exit 0
. /lib/functions.sh
logger "$BUTTON pressed for $SEEN seconds"
if [ "$SEEN" -lt 1 ]
then
logger "WPS ACTIVATED"
for dir in /var/run/hostapd*; do
[ -d "$dir" ] || continue
hostapd_cli -p "$dir" wps_pbc
done
elif [ "$SEEN" -gt 5 ]
then
echo "FACTORY RESET" > /dev/console
jffs2reset -y && reboot &
fi
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/18190#comment:1>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets