diff --git a/docs/aubuf/.gitignore b/docs/aubuf/.gitignore index 9f2393473..317ae13ee 100644 --- a/docs/aubuf/.gitignore +++ b/docs/aubuf/.gitignore @@ -4,3 +4,4 @@ underrun.dat plots ajb.json mcplots +.env diff --git a/docs/aubuf/env-template b/docs/aubuf/env-template new file mode 100644 index 000000000..4a690b693 --- /dev/null +++ b/docs/aubuf/env-template @@ -0,0 +1,4 @@ +target=1.2.3.4 +netif=eno1 +once=true + diff --git a/docs/aubuf/generate_plots.sh b/docs/aubuf/generate_plots.sh index d805de365..176a75f31 100755 --- a/docs/aubuf/generate_plots.sh +++ b/docs/aubuf/generate_plots.sh @@ -1,10 +1,15 @@ #!/bin/bash -#target=192.168.110.192 -#netif=eno1 -target=10.1.0.215 -netif=enp8s0 -once=true +if [ ! -f .env ]; then + echo ".env is missing. Copy and edit env-template!" + exit 1 +fi + +export `cat .env` + +echo "target: $target" +echo "netif: $netif" +echo "once: $once" function init_jitter () { sudo ip link add ifb1 type ifb || :