initial commit
[project/unetd.git] / examples / test-net0.sh
1 #!/bin/sh
2 ifname="${1:-wg0}"
3 host="${2:-ap1}"
4
5 ../unetd -d -h $PWD/hosts -N '{
6 "name": "'"$ifname"'",
7 "type": "file",
8 "key": "'"$(cat ./net0-${host}.key)"'",
9 "file": "'"$PWD/net0.json"'",
10 "update-cmd": "'"$PWD/../scripts/update-cmd.pl"'"
11 }'