Skip to content
New issue

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

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

Already on GitHub? # to your account

Made State writes a ton safer. #192

Merged
merged 11 commits into from
Oct 28, 2016
Merged

Made State writes a ton safer. #192

merged 11 commits into from
Oct 28, 2016

Conversation

ConnorRigby
Copy link
Contributor

What's new?

  • Added a FAQ file
  • Made File Writes all happen in one place, at one time. (the partition name and location also changed)
  • Made pin states and arduino params persist across reboots.

connor rigby added 11 commits October 24, 2016 16:08
Got rid of a bunch of configs in favor of handling all file reading and writing in one module.
This module is SafeStorage. Rather than a module needing to handle its own state file, i made SafeStorage that just stores binaries in a map. The key is the module name.
It flushes the entire state to disk every 60 seconds. But only if the state has changed.
The filesystem is now mounted readonly for MOST of the time, except for that brief moment of flushing to disk if state changed.

i upgraded erlinit to alow a pre vm boot script.
I added bash. (This will probably be removed because im not actually doing anything bash specific.

moved hosts and hostapd files into the system dir.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant