add support for arguments and config files #12

Closed
pranav wants to merge 0 commits from args-and-config into master
Owner

See #11

See #11
pranav added the
enhancement
label 2021-07-30 16:24:41 +02:00
pranav added 1 commit 2021-07-30 16:24:42 +02:00
16dff8bb49
added support for arguments
Try naxalnet --help to see help
pranav added a new dependency 2021-07-31 07:42:40 +02:00
pranav added 1 commit 2021-08-01 13:32:04 +02:00
f55fc74ad4
added PYTHON variable in Makefile
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
pranav added 1 commit 2021-08-02 12:36:22 +02:00
pranav added a new dependency 2021-08-02 12:45:51 +02:00
pranav added this to the Convert into daemon milestone 2021-08-02 12:46:24 +02:00
pranav added 1 commit 2021-08-02 14:51:04 +02:00
3d63ddd2d2
Fixed typo in README.md
Forgot a space after comma
pranav added 1 commit 2021-08-02 14:57:20 +02:00
df73f94018
Added alt text to some links in README.md
And removed a sentence in manual installation section
pranav added 1 commit 2021-08-05 08:44:19 +02:00
2e4149d943
moved device setup into a single function
By the way, --verbose is not implemented yet. We will need to wait until
systemd journal or some other form of logging is implemented.
pranav added 1 commit 2021-08-05 11:17:54 +02:00
ebc7e39d76
added CHANGELOG.md
Contributors should update this file everytime they create a commit
pranav added 1 commit 2021-08-08 18:51:21 +02:00
pranav added 1 commit 2021-08-09 09:26:11 +02:00
a798ac8051
improved README.md
And added a new argument (not implemented) in scripts.py
pranav added 1 commit 2021-08-09 16:39:56 +02:00
2f97bab5cf
changed README.md
Changed the section on internet shutdowns.
Let's see if anyone actually reads the README in source form.
pranav added 1 commit 2021-08-09 18:18:02 +02:00
pranav added 1 commit 2021-08-10 09:51:52 +02:00
pranav added 2 commits 2021-08-13 07:19:49 +02:00
dfd521f9b9
added new args and support for conf files
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. 😁
550529e3d0
updated CHANGELOG
I forgot to update it in the previous commit
pranav added 1 commit 2021-08-13 08:03:38 +02:00
pranav added 1 commit 2021-08-13 09:02:53 +02:00
fe146b7a0d
added implementation of --print-wifi
And added it to the README.
Cleaned up the docstring in naxalnet/__main__.py
pranav added 1 commit 2021-08-14 18:36:21 +02:00
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
pranav added 1 commit 2021-08-15 11:36:04 +02:00
397269823d
almost ready for merge
* Improved CHANGELOG, README, HACKING
* Added naxalnet.conf containing default values. This will be installed
along with the package.
pranav added 1 commit 2021-08-16 15:32:47 +02:00
d18160c46c
disabled buffering in python
Buffering makes the systemd journal not show the logs at the right time.
And changed the systemd service file so that the new batman and bridge
interfaces are deleted when naxalnet.service is stopped. Also simplified
the Stopping section in the README because of this change.
pranav added 2 commits 2021-08-16 18:10:36 +02:00
cf54edf9b9
updated README
Changed order of services to stop in section Stopping the service. This
is because while stopping naxalnet, the ExecStopPost line says to delete
two interfaces. But just before it is run, networkd is stopped. Running
the command will again start networkd, which is not what we need.
pranav added 1 commit 2021-08-17 06:20:52 +02:00
d1ec77dc69
clean up runtime files when stopped
This only applies to the systemd service
pranav added 1 commit 2021-08-18 12:05:12 +02:00
274f08cded
added install instructions for fedora and ubuntu
May not work, I have not tested it.
pranav added 1 commit 2021-08-18 14:06:43 +02:00
7e0fe5ef4c
many changes -- see full commit message
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.
pranav added 1 commit 2021-08-19 08:36:20 +02:00
be8de69b73
updated README and Makefile
Added uninstall as dependency for purge in Makefile.
Changed pkexec and pkcon to sudo and apt and dnf
pranav added 1 commit 2021-08-19 09:07:58 +02:00
fdbbca686d
removed license from package description
Fixed MANIFEST.in and changed data_files in setup.cfg
pranav changed title from WIP: add support for arguments and config files to add support for arguments and config files 2021-08-19 09:15:20 +02:00
Author
Owner

Everything is finished. See the CHANGELOG.md for changes (link to CHANGELOG not included because the branch will be merged soon).

Everything is finished. See the CHANGELOG.md for changes (link to CHANGELOG not included because the branch will be merged soon).
pranav closed this pull request 2021-08-19 09:17:02 +02:00
pranav reopened this pull request 2021-08-19 09:17:11 +02:00
pranav added 1 commit 2021-08-19 09:18:33 +02:00
Author
Owner

Finished.

Finished.
pranav closed this pull request 2021-08-19 09:20:22 +02:00
pranav deleted branch args-and-config 2021-08-23 08:59:10 +02:00

Pull request closed

Sign in to join this conversation.
No reviewers
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Blocks Depends on
Reference: pranav/pybatmesh#12
No description provided.