Browse Source

ping6: add switch for not reading

master
Nico Schottelius 4 years ago
parent
commit
32b8c9f765
  1. 9
      netpfga/ping_ipv6_addresses.sh

9
netpfga/ping_ipv6_addresses.sh

@ -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

Loading…
Cancel
Save