mirror of
https://git.disroot.org/pranav/pybatmesh.git
synced 2024-12-03 12:11:01 +05:30
Pranav Jerry
61a96ea3b3
Made messages printed in Makefile more understandable. Removed full path of naxalnet from the systemd service. Now you can start naxalnet even if it is installed in /usr/local/bin, if systemd allows (I have not tested it). Many comments were made to respect the 80 chars per line rule. And, of course, added some political commentary to insult the global superpower (superpower in terms of money, military and something else I forgot). And removed MANIFEST.in, which probably haven't changed anything.
47 lines
1.7 KiB
Python
47 lines
1.7 KiB
Python
# This file is part of naxalnet.
|
|
# Copyright (C) 2021 The naxalnet Authors
|
|
|
|
# This program is free software: you can redistribute it and/or modify it
|
|
# under the terms of the GNU General Public License as published by the
|
|
# Free Software Foundation, either version 3 of the License, or (at your
|
|
# option) any later version.
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
# Public License for more details.
|
|
|
|
# You should have received a copy of the GNU General Public License along
|
|
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
"""
|
|
default.py
|
|
----------
|
|
|
|
This file contains default values for configuration. This is taken as
|
|
fallback data by config.py if no configuration files were found, or if a
|
|
key-value pair was not present in the config file. The data will be
|
|
further changed by arguments if naxalnet is called from the commandline.
|
|
See config.py for more info.
|
|
"""
|
|
|
|
CONFIG = {
|
|
"networkd": {
|
|
"confdir": "/usr/share/naxalnet/networkd",
|
|
"runtimedir": "/run/systemd/network",
|
|
},
|
|
"device": {"batman": "bat0", "bridge": "bridge0"},
|
|
"adhoc": {"name": "NxMesh"},
|
|
"ap": {"ssid": "MeshWiFi", "passwd": "naxalnet256"},
|
|
"gateway": {"mode": "auto"},
|
|
}
|
|
|
|
# glob
|
|
CONFIG_FILES = ["naxalnet.conf", "naxalnet.conf.d/*.conf"]
|
|
CONFIG_DIRS = ["/usr/share/naxalnet", "/usr/local/share/naxalnet", "/etc/naxalnet"]
|
|
MESH_GLOB = "mesh.*"
|
|
TMP_NET_GLOB = "tmp.*"
|
|
|
|
ISSUE_URL = "https://git.disroot.org/pranav/naxalnet/issues"
|
|
REPORT_BUG_INFO = "If you think this is a bug, report it to " + ISSUE_URL
|