projects
/
project
/
unetd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5089ee1f7133a5aab02007dcb73ad05dd2d36778
[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
}'