Nick Hainke
69c81790d1
wg-installer: rework code
Use shellcheck to rework the code. Use "export" to return variables from
a function call. Further, fix typos.
Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years ago
Nick Hainke
b89eb0115f
wg-installer: switch to ubus call for olsrd hotplug
Use ubus ipc calls to add and remove interfaces.
Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years ago
Nick Hainke
ee879d3747
wg-installer: allow defining link costs for hotplugs
Add options to set link costs in mesh routing daemons.
Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years ago
Nick Hainke
5e8301d7dc
wg-installer: fix using symlinks for conf files
It is useful to symlink babeld and olsrd to /tmp/ if we frequently
write to those config files.
Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years ago
Nick Hainke
d35c22951b
wg-installer: add hotplug script for olsr
Add hotplug-olsrd to automatically mesh with olsrd via new wireguard
links.
Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years ago