From dfb4bcaf21f1c41acbebb9f692973d7bda28e8af Mon Sep 17 00:00:00 2001 From: Casey Diemel Date: Sun, 13 Oct 2019 18:13:25 -0400 Subject: [PATCH] added on_loaded function Signed-off-by: Casey Diemel --- pwnagotchi/plugins/default/unfiltered_example.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pwnagotchi/plugins/default/unfiltered_example.py b/pwnagotchi/plugins/default/unfiltered_example.py index c4f9fba3..c883b7c0 100644 --- a/pwnagotchi/plugins/default/unfiltered_example.py +++ b/pwnagotchi/plugins/default/unfiltered_example.py @@ -9,6 +9,10 @@ import logging # Will be set with the options in config.yml config['main']['plugins'][__name__] OPTIONS = dict() +# called when the plugin is loaded +def on_loaded(): + logging.warning("%s plugin loaded" % __name__) + # called when AP list is ready, before whitelist filtering has occured def on_unfiltered_ap_list(agent,aps): logging.info("Unfiltered AP list to follow")