summaryrefslogtreecommitdiff
path: root/rif-importfriends.sh
diff options
context:
space:
mode:
authorNico Schottelius <nico@nico-notebook.schottelius.org>2019-09-10 02:03:49 +0900
committerNico Schottelius <nico@nico-notebook.schottelius.org>2019-09-10 02:03:49 +0900
commit5e7312aca321c8fee753f0734144923f1d8f55ad (patch)
tree41a3f5888907846b32f38b05018751860c9bfd5c /rif-importfriends.sh
parent3b8e2bff869096edf9ab0dead1c61eeae26a3d4f (diff)
Add script to listfriends and to import friends
Diffstat (limited to 'rif-importfriends.sh')
-rwxr-xr-xrif-importfriends.sh15
1 files changed, 15 insertions, 0 deletions
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> [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