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