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

Merge pull request #18170 from RocioRojas/zep_dispatch

tools/zep_dispatch: run dispatch with custom topology
This commit is contained in:
benpicco 2022-06-08 12:04:58 +02:00 committed by GitHub
commit e7ac109f0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"