Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: add recovery option using file checking on SD card #14

Open
davidpelfree opened this issue Apr 19, 2017 · 0 comments
Open

FEATURE: add recovery option using file checking on SD card #14

davidpelfree opened this issue Apr 19, 2017 · 0 comments

Comments

@davidpelfree
Copy link

Hi.

I want to suggest a simple idea I saw here:
https://www.davidgouveia.net/2016/03/avoid-being-locked-out-of-your-zsun-wifi-reader/

The idea is to reset the device settings if a "/restore" file exists in SD card.
It's implemented using a simple init.d script.

This idea is much simpler than current method: trying to insert/remove SD card during boot to simulate a button click.

I tried this idea myself and it works nice. However, after resetting the device settings, the script itself is also deleted... This means that if I forgot to create it again, the next time, I will be stuck with inaccessible device (and have to use the less-convenient current method of SD card insertion during boot).

Adding this init.d script into the openwrt-zsun firmware code will make it much easier to ALWAYS reset the device in case of misconfiguration, without worrying if the script exists or not. It will always be there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant