#!/bin/sh
#
# Here are some examples of env. variable values:
#   COMM: [--iface eth0|--mode 2]
#
#   GOBAL: --verbose --srcaddr 00:01:02:03:04:05 --no-sec true
#
#   SEC_MODE: --no-sec true
#
#   BEACON: --no-sec-beacon true
#
#   CAM: --cam-station-type passengerCar --cam-station-id 12345 --cam-no-sec
#
#   DENM 
#
#   VERBOSE: --verbose

# E.g. yann@yann-linux:~/frameworks/fsmsggen$ sudo ./build/x86_64-linux-gnu-d/fsmsggen --iface wlo1 --verbose --srcaddr 00:01:02:03:04:05 --no-sec true --cam-station-type passengerCar --cam-station-id 12345 --cam-no-sec --out ./out.pcap


set -e
set +vx

echo "Starting '/fsmsggen ${COMM} ${GOBAL} ${SEC_MODE} ${COMM_MODE} ${BEACON} ${CAM} ${DENM} ${VERBOSE}'"
/fsmsggen ${COMM} ${GOBAL} ${SEC_MODE} ${BEACON} ${CAM} ${DENM} ${VERBOSE}