Too much configs and args make debugging harder. The class networkd will
be used to add config files to the networkd runtime dir after formatting
the file with str.format().
* make will now build every time naxalnet/__init__.py is changed.
* Changed content related to online classes in README.md. It seems online
classes are a luxury even in urban areas in some parts of India.
* Added argument -V as alias for --verbose
There was a problem with indentation which made the line starting adhoc
not being run at all.
Updated CHANGELOG
Moved some things to other places
log.py is back! It isn't needed, but it doesn't do any harm anyway.
naxalnet is now a daemon! When run from systemd, it checks for new
devices or removal of devices and reloads the wifi configuration.
Updated the systemd service and changed Type to notify. Unfortunately,
there is some problem with logging. The messages from naxalnet.iwd could
not be found in the systemd journal or while running without --systemd.
- Renamed here_be_dragons() to main().
- Added daemon.py (doesn't do anything yet).
- Added GPL disclaimer to all python files and removed the shebang #!
from all files.
- args is now defined outside any function in scripts.py
- Changed arguments of some functions in scripts.py
- New dependency -- python-systemd for logging to journal
- Changed service file to start after networkd
- New submodule which contains "logger" for use by all other submodules
- Removed bus argument from Device and Adapter classes
The config file is now installed as /etc/naxalnet/naxalnet.conf.example
by default.
make uninstall now does not ask for confirmation. Added rule purge in
Makefile.
Updated the README.
Changed order of stop commands in service file.
Updated setup.cfg and docstrings.
* Improved docstrings, README
* Added argument --version and its implementation
* Added "uninstall" rule to Makefile and added it in the README
* Updated CHANGELOG
* Cleaned up code
I've probably forgot something so we can't merge to master yet.
And we still have to add installation instructions for ubuntu and fedora
Tidied up code, added more documentation, and the version now confirms
to some PEP standard. Because of the way configuration and arguments are
implemented, ALL the keys in configuration files should have an argument
that can change its value.
Verbose option was commented out, since it is not implemented. An
argument --print-wifi, which should print out WiFi ssid and password is
not implemented at the moment. Also, the README should be updated to
show the new changes. By the way I just remembered I didn't update the
CHANGELOG; I'll do it in the next commit. 😁
This should be used if the python executable is not python3 in your
distro.
I would like to express my displeasure to the Government of India for
not including me in the list of targets for Pegasus, even though I'm
convinced I am a threat to the sovereignty and integrity of the nation
Added Device.reload() to reload the proxy every time the device mode is
changed. Added Device.set_mode() and partial implementation of
Device.start_adhoc_open().
Added link to meaning of hack in HACKING.md
They won't work yet but when they do we can use the classes in iwd.py
instead of using dasbus directly. Also added a Name to Match in
systemd-networkd/06-eth.network
Fixed error when already connected to ad-hoc or ap.
Removed some print() lines I had forgot to remove after debugging.
But we can't close#1 yet (need to update the README)