19 lines
490 B
Bash
19 lines
490 B
Bash
#!/bin/bash
|
|
|
|
if [ ! -f TEST ]
|
|
then
|
|
echo "create the TEST first, e.g. dd if=/dev/urandom of=TEST bs=750M count=1 iflag=fullblock"
|
|
exit 0
|
|
fi
|
|
|
|
if [ $UID -ne 0 ]
|
|
then
|
|
echo "You must be root to run this test script"
|
|
exit 0
|
|
fi
|
|
|
|
ip netns exec c1 wget http://10.141.10.1:9999/TEST -O /dev/null &
|
|
ip netns exec c2 wget http://10.141.10.1:9999/TEST -O /dev/null &
|
|
ip netns exec c3 wget http://10.141.10.1:9999/TEST -O /dev/null &
|
|
ip netns exec c4 wget http://10.141.10.1:9999/TEST -O /dev/null &
|