diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-30 20:45:05 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-30 20:45:08 +0100 |
commit | bbc67c8886e2e6ee5ed8a43a10f362cdc400a647 (patch) | |
tree | ce212f2a14182ae94e3b2d7abe44582d76c8a088 /kernel-tree-scripts/jury-rig.sh | |
parent | a13150499c9df25718505ddd1b2bbd48a51c6ffc (diff) |
kernel-tree: jury rig is the more common spelling
According to the Google Ngram viewer, jury is significantly more common
than jerry.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'kernel-tree-scripts/jury-rig.sh')
-rwxr-xr-x | kernel-tree-scripts/jury-rig.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel-tree-scripts/jury-rig.sh b/kernel-tree-scripts/jury-rig.sh new file mode 100755 index 0000000..fe309a5 --- /dev/null +++ b/kernel-tree-scripts/jury-rig.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +K="$1" +WG="$(readlink -f "$(dirname "$(readlink -f "$0")")/../../src/")" + +if [[ ! -e $K/net/Kconfig ]]; then + echo "You must specify the location of kernel sources as the first argument." >&2 + exit 1 +fi + +ln -sfT "$WG" "$K/net/wireguard" +sed -i "/^obj-\\\$(CONFIG_NETFILTER).*+=/a obj-\$(CONFIG_WIREGUARD) += wireguard/" "$K/net/Makefile" +sed -i "/^if INET\$/a source \"net/wireguard/Kconfig\"" "$K/net/Kconfig" |