olsrd: fix meshing via wireguard tunnels

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>
This commit is contained in:
Nick Hainke 2022-01-08 22:11:44 +01:00
parent abc3468e28
commit 576967a2a3
1 changed files with 4 additions and 0 deletions

View 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