Skip to content

Commit

Permalink
docs: ajb plots use .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Jun 21, 2023
1 parent 17fa1f0 commit 01a601f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/aubuf/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ underrun.dat
plots
ajb.json
mcplots
.env
4 changes: 4 additions & 0 deletions docs/aubuf/env-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
target=1.2.3.4
netif=eno1
once=true

15 changes: 10 additions & 5 deletions docs/aubuf/generate_plots.sh
Original file line number Diff line number Diff line change
@@ -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 || :
Expand Down

0 comments on commit 01a601f

Please sign in to comment.