coder icon indicating copy to clipboard operation
coder copied to clipboard

clean reboot?

Open kristofer opened this issue 11 years ago • 3 comments

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?

kristofer avatar Sep 13 '13 14:09 kristofer

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.

WebReflection avatar Sep 13 '13 15:09 WebReflection

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).

jmstriegel avatar Sep 13 '13 16:09 jmstriegel

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.

richard-tx avatar Jul 25 '14 11:07 richard-tx