Skip to content

Commit 4cc2d64

Browse files
committed
Add simple setup script.
1 parent 8e0772e commit 4cc2d64

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

samples/scenarios/setup.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# Simple script to setup localrc on test node.
4+
# Execute this script from the root directory. For example:
5+
#
6+
# $ samples/scenarios/setup.sh
7+
#
8+
# Assumes your hostname has been set to one of gto, mustang, or charger.
9+
#
10+
# Modify the SCENARIO variable below to use a different scenario.
11+
12+
HOSTNAME=`hostname`
13+
SCENARIO=multinode-ovs
14+
INFO_FILE=samples/scenarios/$SCENARIO/$HOSTNAME-info
15+
echo $INFO_FILE
16+
grep localrc $INFO_FILE | awk -F"|" '{ if (length($2)) { print $2; } }' > localrc

0 commit comments

Comments
 (0)