summaryrefslogtreecommitdiff
path: root/rif-importfriends.sh
blob: 887abc223cba1ff2b53ead31040441265003749c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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