summaryrefslogtreecommitdiff
path: root/board/cem/init.sh
blob: 949f9b93257165ae8c80716a840ad0cb3cf8b393 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

set -e

TARGET_IP="eth0"  # need to match the one on install.sh
HOME_PATH="$HOME/xioh-acceptance/board/full_IO/" # you need to have clone uder the name "xioh-acceptance"
SIZE_FILE="100MB"
TEST_FILE="/tmp/random_$SIZE_FILE"


cd $HOME_PATH
chown asterisk.asterisk call/* -R
cp sound/testing_file.wav /tmp/
scp sound/testing_file.wav $TARGET_IP:/tmp/

/bin/bash install.sh te

cd ../cem
scp eth_perf.sh $TARGET_IP

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
fi