#!/bin/sh

#make sure the modbus test port is defined
if [ "$MOD_SER_PORT" = "" ]; then
    echo Error: MOD_SER_PORT variable is not set
    echo Error: example: export MOD_SER_PORT=ttyS0
    exit
fi

nohup ./mtest $MOD_SER_PORT 57600&

