diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2015-07-23 16:02:25 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2015-07-28 23:26:59 -0300 |
commit | 6a868a671472d454b407a165fc31c5f7dfe783c6 (patch) | |
tree | 7bd2ab13a04d14215264cc992501970cacfb20ef /recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/pingsizest.sh | |
parent | 62e212fe4812a6c726df4ac8e77d4a77e0e54247 (diff) | |
download | meta-freescale-6a868a671472d454b407a165fc31c5f7dfe783c6.tar.gz |
Move meta-fsl-ppc content to layer root
This commit is just a rename of all contents of meta-fsl-ppc
subdirectory to this layer's root, merging the contents of common
files, subsequent changes are based on top of that.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/pingsizest.sh')
-rwxr-xr-x | recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/pingsizest.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/pingsizest.sh b/recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/pingsizest.sh new file mode 100755 index 00000000..d5ff0f7d --- /dev/null +++ b/recipes-connectivity/ipsec-demo/ipsec-demo/test_setkey/pingsizest.sh | |||
@@ -0,0 +1,19 @@ | |||
1 | #!/bin/bash | ||
2 | # | ||
3 | # Usage: ./pingsizes.sh 1440 20 (or greater) | ||
4 | # | ||
5 | |||
6 | PINGDEST=${PINGDEST:-200.200.200.10} | ||
7 | k=$1 | ||
8 | lim="$((k+$2))" | ||
9 | ((k-=1)) | ||
10 | while [ "$k" != "$lim" ] ; do | ||
11 | echo ping -s $((k+=1)) | ||
12 | ping -i 1000 -c 1 -s $k $PINGDEST & | ||
13 | sleep 1 | ||
14 | PID=`ps -eaf | grep 'ping -i' | sed 's/[ ][ ]*/ /g' | cut -d " " -f 2` | ||
15 | if [ -n "$PID" ] ; then | ||
16 | echo "****************** killing $PID" | ||
17 | kill $PID | ||
18 | fi | ||
19 | done | ||