projects
/
oweals
/
gnunet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
If the tun-if can't be initialized correctly, close the vpn-helper
[oweals/gnunet.git]
/
src
/
vpn
/
tests
/
test-helper-icmp.sh
1
#!/bin/bash
2
3
/opt/gnunet/bin/gnunet-vpn-helper < ping > result 2>/dev/null &
4
5
PID=$!
6
7
sleep 1
8
9
kill $PID
10
11
if cmp result expected; then
12
echo OK
13
exit 0
14
else
15
echo FAILED: ICMP-Reply
16
exit 1
17
fi