add log2mem functionality and refracture

This commit is contained in:
dadav
2020-01-18 09:29:28 +01:00
parent 5606ad7281
commit 6a4d7a895e
8 changed files with 305 additions and 110 deletions

View File

@ -6,6 +6,7 @@ import re
import pwnagotchi.ui.view as view
import pwnagotchi
from pwnagotchi import fs
from pwnagotchi._version import __version__
_name = None
@ -99,6 +100,11 @@ def temperature(celsius=True):
def shutdown():
logging.warning("syncing...")
for m in fs.mounts:
m.sync()
logging.warning("shutting down ...")
if view.ROOT:
view.ROOT.on_shutdown()