commented out a line causing trouble

And added a  bit more logging
This commit is contained in:
Pranav Jerry 2021-09-28 15:58:31 +05:30
parent 5bde1faeba
commit a061852a59
No known key found for this signature in database
GPG Key ID: F1DCDC4FED0A0C5B
2 changed files with 5 additions and 2 deletions

View File

@ -35,4 +35,4 @@ See README.md for documentation.
#
# In case you forgot to change the version, skip the number
# and put the next number in the next commit.
__version__ = "0.4.0a5.dev5"
__version__ = "0.4.0a5.dev6"

View File

@ -200,10 +200,13 @@ def cleanup():
logger.info("Exiting gracefully")
networkd.remove_all_configs()
for i in USED_DEVICES:
logger.debug("Turning off %s", i)
device = Device(i)
device.set_mode("station")
# device.set_mode("station")
device.power_off()
logger.debug("Deleting interface %s", args.batman_device)
networkd.delete_interface(args.batman_device)
logger.debug("Deleting interface %s", args.bridge_device)
networkd.delete_interface(args.bridge_device)