projects
/
project
/
unetd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove dummy mode
[project/unetd.git]
/
examples
/
test-net0.sh
1
#!/bin/sh
2
ifname
=
"
${1:-wg0}
"
3
host
=
"
${2:-ap1}
"
4
5
ip link add dev
$ifname
type
wireguard
> /
dev
/
null
2
>&
1
6
7
..
/
unetd
-d -h
$PWD
/
hosts
-N
'{
8
"name": "'
"
$ifname
"
'",
9
"type": "file",
10
"key": "'
"$(cat ./net0-
${host}
.key)"
'",
11
"file": "'
"
$PWD
/net0.json"
'",
12
"tunnels": {
13
"vx0": "l2-tunnel"
14
},
15
"update-cmd": "'
"
$PWD
/../scripts/update-cmd.pl"
'"
16
}'