diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-07-01 20:37:51 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-07-01 20:37:51 +0200 |
commit | e8db1a67cdd270d655e677ffff52f72d5fe4000b (patch) | |
tree | 1d76393653187b07dab5ed6ef4d6ff606a4e5ac8 /contrib/scripts/netjail/netjail_core.sh | |
parent | b6252033387779338051eb617f2594a0b3c851bc (diff) | |
download | gnunet-e8db1a67cdd270d655e677ffff52f72d5fe4000b.tar.gz gnunet-e8db1a67cdd270d655e677ffff52f72d5fe4000b.zip |
-added global nodes without NAT to netjail
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'contrib/scripts/netjail/netjail_core.sh')
-rwxr-xr-x | contrib/scripts/netjail/netjail_core.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/scripts/netjail/netjail_core.sh b/contrib/scripts/netjail/netjail_core.sh index 1cdbca816..d070f7220 100755 --- a/contrib/scripts/netjail/netjail_core.sh +++ b/contrib/scripts/netjail/netjail_core.sh | |||
@@ -28,6 +28,23 @@ netjail_opt() { | |||
28 | printf "%d" 0 | 28 | printf "%d" 0 |
29 | } | 29 | } |
30 | 30 | ||
31 | netjail_opts() { | ||
32 | local OPT=$1 | ||
33 | local DEF=$2 | ||
34 | shift 2 | ||
35 | |||
36 | while [ $# -gt 0 ]; do | ||
37 | if [ "$1" = "$OPT" ]; then | ||
38 | printf "$2" | ||
39 | return | ||
40 | fi | ||
41 | |||
42 | shift 1 | ||
43 | done | ||
44 | |||
45 | printf "$DEF" | ||
46 | } | ||
47 | |||
31 | netjail_check() { | 48 | netjail_check() { |
32 | local NODE_COUNT=$1 | 49 | local NODE_COUNT=$1 |
33 | local FD_COUNT=$(($(ls /proc/self/fd | wc -w) - 4)) | 50 | local FD_COUNT=$(($(ls /proc/self/fd | wc -w) - 4)) |