Statistics
| Branch: | Revision:

iof-tools / setenv.sh @ 27cc0deb

History | View | Annotate | Download (362 Bytes)

1
if [ $# -eq 1 ]; then
2
	testbed="$1"
3
else
4
	testbed="twist"
5
fi
6

    
7
if [ "$testbed" == "wilab" ]; then
8
	MASTER_NODE=nuc0-43
9
	CONFIG_FILE=$HOME/.ssh/wilab1-ssh.cfg
10
elif [ "$testbed" == "twist" ]; then
11
	MASTER_NODE=nuc4
12
	CONFIG_FILE=$HOME/.ssh/twist-ssh.cfg
13
else
14
	MASTER_NODE=proxy0
15
	CONFIG_FILE=./ssh-config
16
fi
17

    
18
HOME_FOLDER=`ssh -F ${CONFIG_FILE} ${MASTER_NODE} "pwd"`