aboutsummaryrefslogtreecommitdiff
path: root/net/wg-installer/wg-server/hotplug.d/99-mesh-babeld
Commit message (Collapse)AuthorAge
* wg-installer: use babeld add_interface functionNick Hainke2022-02-01
| | | | | | | | | | | With commit 385200443554 ("babeld: add add_interface function") babeld has a new ubus function allowing to dynamically add an interface. Before the add_interface function, we were required to reload babeld. The reload influenced the babeld routing. However, the remove part is still missing and will be added at a later stage. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: rework codeNick Hainke2022-01-20
| | | | | | | 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>
* wg-installer: allow defining link costs for hotplugsNick Hainke2022-01-12
| | | | | | Add options to set link costs in mesh routing daemons. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: fix using symlinks for conf filesNick Hainke2022-01-11
| | | | | | | 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>
* wg-installer: add babeld hotplug.d scriptNick Hainke2021-02-08
Add a hotplug.d-extension that automatically configures babeld for meshing via wireguard interfaces. It checks for "add" and "remove" of a wireguard interface with name "wg_*". Depending on the action, it removes it from the babeld config or adds the interface and reloads babeld. Signed-off-by: Nick Hainke <vincent@systemli.org>