]> git.netwichtig.de Git - user/henk/code/shell/rif.git/blob - rif-importfriends.sh
Update all files to use RI6F instead of RIF
[user/henk/code/shell/rif.git] / rif-importfriends.sh
1 #!/bin/sh
2 # 2019-09-10, Nico Schottelius, Seoul
3
4 if [ $# -lt 1 ]; then
5     echo "$0: <URL> [URL...]"
6     echo "URL: of your real IPv6 friend(s)"
7     exit 1
8 fi
9
10 while [ $# -ge 1 ]; do
11     url=$1; shift
12     fullurl=${url}/rifkeys
13
14     curl -6 -s "${fullurl}" | gpg --import
15 done