ping6: add switch for not reading
This commit is contained in:
parent
65b3ee07d3
commit
32b8c9f765
1 changed files with 8 additions and 1 deletions
|
@ -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}"
|
||||
if [ "$read" ]; then
|
||||
read dummy
|
||||
fi
|
||||
ping6 -c1 "$ip"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue