diff options
author | Ryan Kavanagh <rak@rak.ac> | 2021-06-24 20:10:12 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2021-06-24 20:10:12 -0400 |
commit | 368c5179d22054f990f5d322f75fc6c9bd41c12f (patch) | |
tree | de492576c9bf6530ff1b32894e2fa9cdf0977f59 /bin | |
parent | update nntp host for gnus (diff) |
drop ikeif; no longer needed
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ikeif | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/bin/ikeif b/bin/ikeif deleted file mode 100755 index 853c659..0000000 --- a/bin/ikeif +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/sudo /bin/sh - -for x in 1 3; do - if ! ip link show dummy$x >/dev/null 2>&1; then - ip link add dummy$x type dummy && ip link set dummy$x up - fi - SUBNET=$(sudo ikectl show sa | grep -Poh "10.0.$x.\d+/32" | sort -u | sed -e 's@/32@/24@g') - CURR=$(ip addr show dev dummy$x label dummy$x:ikeif | grep -Po 'inet \K[\d./]+') - if test "x${SUBNET}" != "x${CURR}"; then - ip addr add ${SUBNET} label dummy$x:ikeif dev dummy$x - if test "x${CURR}" != "x"; then - ip addr del "${CURR}" dev dummy$x - fi - fi -done - -#vim: set ft=sh: |