tomeshnet / prototype-cjdns-pi

Prototype system for mesh networks on single board computers
https://chat.tomesh.net/#/room/#software:tomesh.net
GNU General Public License v3.0
218 stars 42 forks source link

mesh.conf documentation #425

Open makew0rld opened 5 years ago

makew0rld commented 5 years ago

Now that the /etc/mesh.conf file is being used, it'd be good to see some documentation on the variables found in it and stuff, I guess in docs/.

Here's all the places its used so far in develop:

/Desktop/Coding/tomesh/prototype-cjdns-pi develop
❯ rg mesh.conf
scripts/install2
243:sudo confset general mesh-name "$MESH_NAME" /etc/mesh.conf
412:    echo "export MESH_NAME=$(confget -f /etc/mesh.conf -s general "mesh-name")"

scripts/mesh-point/mesh-point
21:mesh_name=$(confget -f /etc/mesh.conf -s general "mesh-name")
22:frequency=$(confget -f /etc/mesh.conf -s general "frequency")

scripts/mesh-point/install
7:MESH_NAME=$(confget -f /etc/mesh.conf -s general "mesh-name")

scripts/hostapd/install
48:APSSID=$(confget -f /etc/mesh.conf -s general "mesh-name")

scripts/mesh-adhoc/install
7:MESH_NAME=$(confget -f /etc/mesh.conf -s general "mesh-name")

scripts/mesh-adhoc/mesh-adhoc
5:mesh_name=$(confget -f /etc/mesh.conf -s general "mesh-name")
6:frequency=$(confget -f /etc/mesh.conf -s general "frequency")
11:mesh_dev=$(confget -f /etc/mesh.conf -s general "ibss-dev")

scripts/shared/hostname/install
3:MESH_NAME=$(confget -f /etc/mesh.conf -s general "mesh-name")

scripts/shared/nodeinfo/install
8:MESH_NAME=$(confget -f /etc/mesh.conf -s general "mesh-name")

@darkdrgn2k Could you do this before v0.5 is released?