aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/examples/dns-hatchet/apply.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-31 11:38:09 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-31 17:25:23 +0100
commitc13827622b6aeaaa15da948f71b7c16288fe88a9 (patch)
tree2e58aaaad1988fc69710be8bf7e73515e38cacf9 /contrib/examples/dns-hatchet/apply.sh
parentglobal: use fewer BUG_ONs (diff)
downloadwireguard-monolithic-historical-c13827622b6aeaaa15da948f71b7c16288fe88a9.tar.xz
wireguard-monolithic-historical-c13827622b6aeaaa15da948f71b7c16288fe88a9.zip
wg-quick: allow for the hatchet, but not by default
Diffstat (limited to 'contrib/examples/dns-hatchet/apply.sh')
-rwxr-xr-xcontrib/examples/dns-hatchet/apply.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/examples/dns-hatchet/apply.sh b/contrib/examples/dns-hatchet/apply.sh
new file mode 100755
index 0000000..ce35ecd
--- /dev/null
+++ b/contrib/examples/dns-hatchet/apply.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+ME="$(readlink -f "$(dirname "$(readlink -f "$0")")")"
+TOOLS="$ME/../../../src/tools"
+
+sed -i "/~~ function override insertion point ~~/r $ME/hatchet.bash" "$TOOLS/wg-quick.bash"