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:
parent
abc3468e28
commit
576967a2a3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue