From 5e58df0b711614aca67cfb5d34d245a82f7729f2 Mon Sep 17 00:00:00 2001 From: Pranav Jerry Date: Mon, 29 Nov 2021 14:36:59 +0530 Subject: [PATCH] temporary fix for #25 Uses multithreading.Process instead of GLib.timeout_add() The moment I finished writing this part, I found out the only problem with my previous commit was that I had setup the timeout _after_ calling the blocking function wait_for_change instead of before it. Although this version (with Process) works, I'm reverting to the previous version and swapping the two lines (which I had tested and found to work) And in case you have read upto the previous line you should also know I fixed some code in the README TL;DR: I have proven once again I am an idiot --- README.md | 7 ++++--- naxalnet/__init__.py | 2 +- naxalnet/network.py | 31 ++++++++++++++++++++----------- naxalnet/scripts.py | 3 +-- pyproject.toml | 1 + setup.cfg | 5 ++++- 6 files changed, 31 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 0511620..59444cf 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ uname -r python3 --version # Check for IBSS (ad-hoc) support in your WiFi firmware or driver -iw phy | grep -iq ibss && echo "IBSS is supported" || echo "IBSS not supported" +iw phy | grep -q join_ibss && echo "IBSS is supported" || echo "IBSS not supported" ``` Clone the naxalnet repo and cd into it. @@ -300,8 +300,9 @@ systemd-networkd configures the network. ### Online class -naxalnet can be used to share connections to join online classes. -You need at least one device with internet access if you are not using a program like [Jami][]. +naxalnet can be used to share connections to join online classes. You need +at least one device with internet access if you are not using a program +like [Jami][].