From 576967a2a3eaa468bcba2f24708ea4674b7e3586 Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Sat, 8 Jan 2022 22:11:44 +0100 Subject: [PATCH] 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 --- olsrd/files/olsrd.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/olsrd/files/olsrd.sh b/olsrd/files/olsrd.sh index d0fe5c1..cb52d19 100644 --- a/olsrd/files/olsrd.sh +++ b/olsrd/files/olsrd.sh @@ -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 -- 2.30.2