projects
/
feed
/
routing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a85b7c7
)
olsrd: fix meshing via wireguard tunnels
author
Nick Hainke
<
[email protected]
>
Sat, 8 Jan 2022 21:11:44 +0000
(22:11 +0100)
committer
Nick Hainke
<
[email protected]
>
Sat, 8 Jan 2022 21:55:55 +0000
(22:55 +0100)
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 <
[email protected]
>
(cherry picked from commit
576967a2a3eaa468bcba2f24708ea4674b7e3586
)
olsrd/files/olsrd.sh
patch
|
blob
|
history
diff --git
a/olsrd/files/olsrd.sh
b/olsrd/files/olsrd.sh
index d0fe5c1d8d57f5c2d58fce9c5210e223d90c2bd0..cb52d1973a791ec9c9232d4e868dd1cbe2307ee7 100644
(file)
--- 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