run-stub.sh 526 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#
# Script to run the stub
#

#
# Let common-env know what role we're playing
#
export HOST_ROLE="stub"

#
# Grab common environment variables
#
. `dirname $0`/../common-env.sh

16
17
18
19
20
#
# Have libnetmon export to a seperate file
#
export LIBNETMON_OUTPUTFILE="/local/logs/libnetmon.out"

21
22
23
#
# Just run the stub!
#
24
echo "Running PID $$"
25
echo "Starting stubd on $PLAB_IFACE ($PLAB_IP) Extra arguments: $*"
26
exec $AS_ROOT $NETMON_DIR/instrument-standalone.sh $STUB_DIR/$STUBD -lcontrol-send -lmain-loop -bbuffer $* $PLAB_IFACE