From 5e7312aca321c8fee753f0734144923f1d8f55ad Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 10 Sep 2019 02:03:49 +0900 Subject: Add script to listfriends and to import friends --- rif-importfriends.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 rif-importfriends.sh (limited to 'rif-importfriends.sh') diff --git a/rif-importfriends.sh b/rif-importfriends.sh new file mode 100755 index 0000000..887abc2 --- /dev/null +++ b/rif-importfriends.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# 2019-09-10, Nico Schottelius, Seoul + +if [ $# -lt 1 ]; then + echo "$0: [URL...]" + echo "URL: of your real IPv6 friend(s)" + exit 1 +fi + +while [ $# -ge 1 ]; do + url=$1; shift + fullurl=${url}/rifkeys + + curl -6 -s "${fullurl}" | gpg --import +done -- cgit v1.2.3