2021-09-06 21:54:24 +05:30
|
|
|
# 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/>.
|
2021-08-13 10:35:13 +05:30
|
|
|
|
|
|
|
"""
|
2021-08-14 22:00:07 +05:30
|
|
|
default.py
|
|
|
|
----------
|
|
|
|
|
2021-08-13 10:35:13 +05:30
|
|
|
This file contains default values for configuration.
|
2021-08-14 22:00:07 +05:30
|
|
|
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.
|
2021-08-13 10:35:13 +05:30
|
|
|
"""
|
|
|
|
|
|
|
|
CONFIG = {
|
|
|
|
"networkd": {
|
|
|
|
"confdir": "/usr/share/naxalnet/networkd",
|
|
|
|
"runtimedir": "/run/systemd/network",
|
|
|
|
},
|
2021-09-25 15:04:29 +05:30
|
|
|
"globs": {"meshconfigs": "mesh.*", "checkconfigs": "check.*"},
|
2021-08-13 10:35:13 +05:30
|
|
|
"adhoc": {"name": "NxMesh"},
|
|
|
|
"ap": {"ssid": "MeshWiFi", "passwd": "naxalnet256"},
|
|
|
|
}
|
|
|
|
|
|
|
|
# glob
|
2021-08-14 22:00:07 +05:30
|
|
|
CONFIG_FILES = ["naxalnet.conf", "naxalnet.conf.d/*.conf"]
|
2021-08-18 17:33:46 +05:30
|
|
|
CONFIG_DIRS = ["/usr/share/naxalnet", "/usr/local/share/naxalnet", "/etc/naxalnet"]
|
2021-09-21 22:43:41 +05:30
|
|
|
|
|
|
|
ISSUE_URL = "https://git.disroot.org/pranav/naxalnet/issues"
|
|
|
|
REPORT_BUG_INFO = "If you think this is a bug, report it to " + ISSUE_URL
|