diff options
author | Kévin Raymond <kraymond@avencall.com> | 2012-11-14 19:20:33 +0100 |
---|---|---|
committer | Kévin Raymond <kraymond@avencall.com> | 2012-11-14 19:20:33 +0100 |
commit | fa45cb23ff139552d7428006bdb2f752d0419de7 (patch) | |
tree | 12ba56f18c94bd3e4653c0fe5115323b9e7c08da /board/cem/start_eth_perf.sh | |
parent | 6e000c87c110999cc97844dffcc5b4cd29f67226 (diff) |
moving the init to init.sh
Diffstat (limited to 'board/cem/start_eth_perf.sh')
-rwxr-xr-x | board/cem/start_eth_perf.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/board/cem/start_eth_perf.sh b/board/cem/start_eth_perf.sh index b6ae51f..c8d7174 100755 --- a/board/cem/start_eth_perf.sh +++ b/board/cem/start_eth_perf.sh @@ -6,7 +6,7 @@ iface=( 10.42.0.1 DURATION=30 SLEEP_DURATION=7 SIZE_FILE="100MB" -TEST_FILE="random_$SIZE_FILE" +TEST_FILE="/tmp/random_$SIZE_FILE" MAIN_PID=$$ KILL_CMD="k" @@ -18,8 +18,9 @@ exec 2>&1 if [ ! -e $TEST_FILE ] then - dd if=/dev/urandom of=$TEST_FILE bs=$((1024*1024)) count=${SIZE_FILE//[a-zA-Z]/} - /usr/bin/md5sum $TEST_FILE > $TEST_FILE.md5sum + echo "Error, $TEST_FILE not found, you need to run init.sh first!" + # Read the README... + exit 234 fi # this run iperf client on a specified iface |