Commit Graph

19 Commits

Author SHA1 Message Date
ca1e721c9e
fixed logging issue and another bug
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.
2021-09-07 18:45:11 +05:30
68b53ccad1
implemented daemon
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.
2021-09-07 11:19:14 +05:30
6fff558405
many changes, see full commit message
- 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
2021-09-06 21:54:24 +05:30
2d9aee4d3a
added --systemd and --verbose arguments
When run without --systemd, naxalnet will log to stderr.
Otherwise, it will log to systemd journal.

log.py is no longer needed.
2021-09-06 14:57:54 +05:30
a3e9b45050
more logging messages and code cleanup
Removed log messages from config.py
2021-09-06 12:23:07 +05:30
87c5d48144
added more logging info 2021-09-04 14:24:53 +05:30
4ea53e5a35
implemented logging
- 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
2021-08-25 15:52:46 +05:30
d7a9edc1e8
many changes -- read full commit
* 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
2021-08-14 22:00:07 +05:30
b2f30bad62
added AP support in naxalnet.py and iwd.py 2021-07-21 14:36:23 +05:30
f0689016ce
ad-hoc part done
Check out naxalnet/naxalnet.py
2021-07-19 14:11:43 +05:30
809c09afe0
Added class Adapter in iwd.py
Initial implementation. No useful public methods yet
2021-07-18 14:24:27 +05:30
91be0b0189
Added main.py
This file at the moment contains debugging code.
Changed HACKING.md
2021-07-18 14:07:16 +05:30
b1d970a0f6
fixed bug in iwd.py
And fixed a typo in README.md
2021-07-17 13:34:06 +05:30
7b7c3f0b2e
added license to iwd.py 2021-07-12 20:20:50 +05:30
8bf05ba334
added new functions 2021-07-12 20:17:33 +05:30
0e7a69be53
Updated HACKING.md and naxalnet/iwd.py
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
2021-07-07 14:08:05 +05:30
e4fd0ff04d
basic implementaion of class Device and IWD
When work is finished, we can use them to start adhoc or ap
2021-07-01 12:18:44 +05:30
f4a490210d added prototype functions in naxalnet/iwd.py
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
2021-06-30 21:50:39 +05:30
ba2425f008
initial implementation of iwd api
iwd.py is used to communicate with iwd via d-bus
2021-06-27 14:25:36 +05:30