servalproject / openwrt

OpenWRT distribution for Serval Mesh Extenders
https://developer.servalproject.org
GNU General Public License v2.0
8 stars 3 forks source link

Super-Cap Safe Shutdown software-side missing #3

Open gardners opened 7 years ago

gardners commented 7 years ago

As mentioned in #1, we need to implement safe shutdown functionality, whenever a Mesh Extender believes it is running from the super-capacitor.

Instrumenting servald and lbard to not write to any files when GPIO24 is low is probably the simplest first step in this direction. This also solves the problem of ensuring that if power is restored before the device shuts down, that services can then resume.