aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_simple_send.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/test_transport_simple_send.sh')
-rwxr-xr-xsrc/transport/test_transport_simple_send.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/transport/test_transport_simple_send.sh b/src/transport/test_transport_simple_send.sh
index 2dd269fcc..7e3ee032f 100755
--- a/src/transport/test_transport_simple_send.sh
+++ b/src/transport/test_transport_simple_send.sh
@@ -1,2 +1,7 @@
1#!/bin/bash 1#!/bin/bash
2exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; ./test_transport_start_with_config test_transport_simple_send_topo.conf" 2if [ "$(sysctl -n kernel.unprivileged_userns_clone)" == 1 ]; then
3 exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; ./test_transport_start_with_config test_transport_simple_send_topo.conf"
4else
5 echo -e "Error during test setup: The kernel parameter kernel.unprivileged_userns_clone has to be set to 1! One has to execute\n\n sysctl kernel.unprivileged_userns_clone=1\n"
6 exit 78
7fi