commit
2cee89da7d
@ -13,14 +13,14 @@ OPTIONS = dict()
|
|||||||
|
|
||||||
|
|
||||||
def on_loaded():
|
def on_loaded():
|
||||||
logging.info("gps plugin loaded for %s" % device)
|
logging.info("gps plugin loaded for %s" % OPTIONS['device'])
|
||||||
|
|
||||||
|
|
||||||
def on_ready(agent):
|
def on_ready(agent):
|
||||||
global running
|
global running
|
||||||
|
|
||||||
if os.path.exists(device):
|
if os.path.exists(OPTIONS['device']):
|
||||||
logging.info("enabling gps bettercap's module for %s" % device)
|
logging.info("enabling gps bettercap's module for %s" % OPTIONS['device'])
|
||||||
try:
|
try:
|
||||||
agent.run('gps off')
|
agent.run('gps off')
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user