mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 08:51:25 +02:00
We split wg and wg-quick into seperate packages but let the main pacakge pull both of them in. This way they can have their own deps and we can pull them in independently. We also patch wg-quick to ue busybox sysctl.
13 lines
479 B
Diff
13 lines
479 B
Diff
diff --git a/src/tools/wg-quick/linux.bash b/src/tools/wg-quick/linux.bash
|
|
--- a/src/tools/wg-quick/linux.bash
|
|
+++ b/src/tools/wg-quick/linux.bash
|
|
@@ -201,7 +201,7 @@
|
|
cmd ip $proto rule add table main suppress_prefixlength 0
|
|
while read -r key _ value; do
|
|
[[ $value -eq 1 ]] && sysctl -q "$key=2"
|
|
- done < <(sysctl -a -r '^net\.ipv4.conf\.[^ .=]+\.rp_filter$')
|
|
+ done < <(sysctl -a 2>/dev/null | sed -n -r 's#^(net\.ipv4.conf\.[^ .=]+\.rp_filter).*$#\1#p')
|
|
return 0
|
|
}
|
|
|