this is required by the new button timeout feature
Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r46471
SVN-Revision: 46581
#!/bin/sh
[ "${TYPE}" = "switch" ] || echo ${BUTTON} > /tmp/failsafe_button
+
+return 0
echo "FACTORY RESET" > /dev/console
jffs2reset -y && reboot &
fi
+
+return 0
config_foreach wifi_rfkill_set wifi-device
uci commit wireless
wifi up
+
+return 0
hostapd_cli -i "$socket" wps_pbc
done
fi
+
+return 0