2021-08-13 10:35:13 +05:30
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
"""
|
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",
|
|
|
|
},
|
|
|
|
"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"]
|
|
|
|
CONFIG_DIRS = ["/usr/share/naxalnet", "/etc/naxalnet"]
|