From fa45cb23ff139552d7428006bdb2f752d0419de7 Mon Sep 17 00:00:00 2001 From: Kévin Raymond Date: Wed, 14 Nov 2012 19:20:33 +0100 Subject: moving the init to init.sh --- board/cem/start_eth_perf.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'board/cem/start_eth_perf.sh') 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 -- cgit v1.2.3