From 46df27f860b96c9e97c6e3ba1dcd6144ea16593f Mon Sep 17 00:00:00 2001 From: dadav <33197631+dadav@users.noreply.github.com> Date: Tue, 8 Oct 2019 21:32:31 +0200 Subject: [PATCH] Add OPTIONS --- pwnagotchi/plugins/default/gps.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pwnagotchi/plugins/default/gps.py b/pwnagotchi/plugins/default/gps.py index c49b926a..234df3a9 100644 --- a/pwnagotchi/plugins/default/gps.py +++ b/pwnagotchi/plugins/default/gps.py @@ -13,14 +13,14 @@ OPTIONS = dict() def on_loaded(): - logging.info("gps plugin loaded for %s" % device) + logging.info("gps plugin loaded for %s" % OPTIONS['device']) def on_ready(agent): global running - if os.path.exists(device): - logging.info("enabling gps bettercap's module for %s" % device) + if os.path.exists(OPTIONS['device']): + logging.info("enabling gps bettercap's module for %s" % OPTIONS['device']) try: agent.run('gps off') except: