ping6: add switch for not reading

This commit is contained in:
Nico Schottelius 2019-07-28 12:10:46 +02:00
parent 65b3ee07d3
commit 32b8c9f765
1 changed files with 8 additions and 1 deletions

View File

@ -2,9 +2,16 @@
set -x
read=yes
if [ $# -ge 1 ]; then
read=""
fi
for addr in $(seq 1 8); do
ip=2001:db8:42::$addr
echo "Next to ping: ${ip}"
read dummy
if [ "$read" ]; then
read dummy
fi
ping6 -c1 "$ip"
done