From: Nick Hainke Date: Sat, 8 Jan 2022 21:11:44 +0000 (+0100) Subject: olsrd: fix meshing via wireguard tunnels X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=576967a2a3eaa468bcba2f24708ea4674b7e3586;p=feed%2Frouting.git 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 --- 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