INNER CODE UNIT · Python

shutdown

evilsocket/pwnagotchi · pwnagotchi/__init__.py:108

def shutdown():
    logging.warning("shutting down ...")

    from pwnagotchi.ui import view
    if view.ROOT:
        view.ROOT.on_shutdown()
        # give it some time to refresh the ui
        time.sleep(10)

    logging.warning("syncing...")

    from pwnagotchi import fs
    for m in fs.mounts:
        m.sync()
 
    os.system("sync")
    os.system("halt")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…