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

clean reboot? #6

Open
kristofer opened this issue Sep 13, 2013 · 3 comments
Open

clean reboot? #6

kristofer opened this issue Sep 13, 2013 · 3 comments

Comments

@kristofer
Copy link

we need to add a shutdown button to the main coder app. otherwise, it's only a matter of a few unpluggings and the SD card to hosed, right?

@WebReflection
Copy link

there is a reboot, it should be easy to put a shutdown too with same privileges, shutdown -h now instead of -r, and spawn('sudo_script/shutdown') through any button/link/url you want.

@jmstriegel
Copy link
Contributor

In practice, as long as you don't unplug your device right as you're saving a project, I don't think you'll have a problem.

If you actually encounter an issue here, let me know and I'll work this in. WebReflection has the right track here if you'd like to go ahead and play with adding this. Just make a shutdown script in the sudo_scripts folder.

Once you have the script in place (you'll have to do that bit manually), you can actually play around with how the main landing page works right in the coder editor. Just go to /app/editor/edit/coder. The wifi app is the only piece right now that does rebooting, if you want to look at that for reference (/app/editor/edit/wifi).

@richard-tx
Copy link

I have been unplugging my Rpis daily for well over a year without incident. I have had problems with cheap SD cards being destroyed, but ever since I started using Toshiba Exceria cards, I have not had a single failure.

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

4 participants