diff options
author | t3sserakt <t3ss@posteo.de> | 2022-12-07 12:42:31 +0100 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2022-12-07 12:42:31 +0100 |
commit | 34e1c58cb39a649c9a4c551681cedf19807b85f0 (patch) | |
tree | 79ea7222958c3ae086b2b2367f22cb66936ad045 /src/transport/test_transport_nat_upnp.sh | |
parent | 8804d3efd5bccce3a5d7638a5fcb33450ade2f07 (diff) | |
download | gnunet-34e1c58cb39a649c9a4c551681cedf19807b85f0.tar.gz gnunet-34e1c58cb39a649c9a4c551681cedf19807b85f0.zip |
- added configuration to be able to start executables on a router node
- added barrier functionality
Diffstat (limited to 'src/transport/test_transport_nat_upnp.sh')
-rwxr-xr-x | src/transport/test_transport_nat_upnp.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/transport/test_transport_nat_upnp.sh b/src/transport/test_transport_nat_upnp.sh new file mode 100755 index 000000000..f9dfca71f --- /dev/null +++ b/src/transport/test_transport_nat_upnp.sh | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/bin/bash | ||
2 | if ! [ -d "/run/netns" ]; then | ||
3 | echo You have to create the directory /run/netns. | ||
4 | fi | ||
5 | if [ -f /proc/sys/kernel/unprivileged_userns_clone ]; then | ||
6 | if [ "$(cat /proc/sys/kernel/unprivileged_userns_clone)" != 1 ]; then | ||
7 | 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" | ||
8 | exit 78 | ||
9 | fi | ||
10 | fi | ||
11 | exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; ./test_transport_start_with_config test_transport_nat_upnp_topo.conf" | ||