Merges George changes
[p2p-testing-infrastructure.git] / ControlScripts / pre-run_ct.sh
1 #!/bin/bash
2
3 # 2010, Razvan Deaconescu
4 #
5 # pre-run script for container bandwidth limitation scenarios
6
7 # Read the node-specific configuration file
8 # Check if the node-specific configuration file exists
9 if [ ! -e ../ClientWorkingFolders/TmpLogs/node_config ]; then
10         echo "Warning: The global config file ../ClientWorkingFolders/TmpLogs/node_config does not exist."
11 else
12         source ../ClientWorkingFolders/TmpLogs/node_config
13 fi
14
15 ./bw_limit_ct.sh set ${IFACE} ${DL_BW} ${DL_BURST} ${UL_BW} ${UL_BURST}