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>
(cherry picked from commit 576967a2a3
)
This commit is contained in:
parent
a85b7c7ea8
commit
c8b613e11c
|
@ -624,6 +624,10 @@ olsrd_write_interface() {
|
||||||
ifnames="$ifnames \"$IFNAME\""
|
ifnames="$ifnames \"$IFNAME\""
|
||||||
ifsglobal="$ifsglobal $IFNAME"
|
ifsglobal="$ifsglobal $IFNAME"
|
||||||
fi
|
fi
|
||||||
|
elif [[ "$(ip -details link show dev $interface)" == *"wireguard"* ]]; then
|
||||||
|
# wireguard interface
|
||||||
|
ifnames="$ifnames \"$interface\""
|
||||||
|
ifsglobal="$ifsglobal $interface"
|
||||||
else
|
else
|
||||||
log "$funcname() Warning: Interface '$interface' not found, skipped"
|
log "$funcname() Warning: Interface '$interface' not found, skipped"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue