From cf3cd322192a2f21c4d6b141c5820e9d1619a848 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Mon, 27 May 2024 19:08:23 +0200 Subject: Add new wireguard helper scripts --- scripts/wireguard-add-peer.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 scripts/wireguard-add-peer.sh (limited to 'scripts/wireguard-add-peer.sh') diff --git a/scripts/wireguard-add-peer.sh b/scripts/wireguard-add-peer.sh new file mode 100644 index 0000000..97c3cf3 --- /dev/null +++ b/scripts/wireguard-add-peer.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -euo pipefail +IFS=$'\n\t' + +if [[ $# -ne 1 ]]; then + echo "Usage: $0 " + exit 1 +fi + +cat >> "$1" <