olsrd: fix meshing via wireguard tunnels
authorNick Hainke <vincent@systemli.org>
Sat, 8 Jan 2022 21:11:44 +0000 (22:11 +0100)
committerNick Hainke <vincent@systemli.org>
Sat, 8 Jan 2022 21:37:32 +0000 (22:37 +0100)
The procd script was not adding the wireguard interfaces. Add corner case
in the init script to allow meshing via wireguard.

Signed-off-by: Nick Hainke <vincent@systemli.org>
olsrd/files/olsrd.sh

index d0fe5c1d8d57f5c2d58fce9c5210e223d90c2bd0..cb52d1973a791ec9c9232d4e868dd1cbe2307ee7 100644 (file)
@@ -624,6 +624,10 @@ olsrd_write_interface() {
                                        ifnames="$ifnames \"$IFNAME\""
                                        ifsglobal="$ifsglobal $IFNAME"
                                fi
+                       elif [[ "$(ip -details link show dev $interface)" == *"wireguard"* ]]; then
+                               # wireguard interface
+                               ifnames="$ifnames \"$interface\""
+                               ifsglobal="$ifsglobal $interface"
                        else
                                log "$funcname() Warning: Interface '$interface' not found, skipped"
                        fi