Make test.sh add the veth0a and veth0b interfaces automatically
This commit is contained in:
parent
605bb9d26f
commit
ea2523e263
12
test.sh
12
test.sh
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh
|
||||
LIBEXECDIR=. make &&
|
||||
test -n "$(getcap ethermess-backend)" || sudo setcap CAP_NET_RAW=ep ethermess-backend &&
|
||||
LIBEXECDIR=. CFLAGS=-Werror make || exit 1
|
||||
test -n "$(getcap ethermess-backend)" || sudo setcap CAP_NET_RAW=ep ethermess-backend || exit 1
|
||||
if ip link show veth0a > /dev/null 2>&1 || ip link show veth0b > /dev/null 2>&1
|
||||
then
|
||||
true
|
||||
else
|
||||
sudo ip link add veth0a type veth peer name veth0b || exit 1
|
||||
sudo ip link set veth0a up || exit 1
|
||||
sudo ip link set veth0b up || exit 1
|
||||
fi
|
||||
./ethermess "$@"
|
||||
|
|
Loading…
Reference in New Issue