1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tools/zep_dispatch: run dispatch with custom topology

This commit is contained in:
Rocio 2022-06-03 23:33:33 -04:00
parent 79958d0bf5
commit 85aa78b102

View File

@ -22,9 +22,10 @@ RANGE=30 # base node radio range
VARIANCE=15 # random offset to radio range
NUM=10 # number of nodes
echo "writing to $FILE"
./bin/topogen -w $WIDTH -h $HEIGHT -r $RANGE -v $VARIANCE -n $NUM > "$FILE"
if [ ! -f "$FILE" ]; then
echo "writing to $FILE"
./bin/topogen -w $WIDTH -h $HEIGHT -r $RANGE -v $VARIANCE -n $NUM > "$FILE"
fi
if ! command -v gnuplot > /dev/null; then
printf "${CWARN}%s${CRESET}\n" "gnuplot not installed"