#!/bin/bash # # # genRouter # # # Where are the files for IOU IOUFILES=/directory/with/IOU/in/it/ # What is the name of the L3 executable L2IOU=IOUexecutablefilename # Wrapper executable WRAPPEREXE=/path/to/wrapper-linux # Number of Ethernets ETHCOUNT=$1 # Number of Serials SERCOUNT=$2 # Amount of RAM -- IGNORED BUT NECESSARY RAMCOUNT=$3 # Instance ID INSTID=$4 # What's the port number to listen on? PORTNUMBER=10${INSTID} ${WRAPPEREXE} -m ${IOUFILES}${L2IOU} -p ${PORTNUMBER} -- -e ${ETHCOUNT} -s ${SERCOUNT} ${INSTID} & echo $! > pid/${INSTID}.pid