From 32b8c9f7658d78d772c2e3c11c516aa8e25d6610 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 28 Jul 2019 12:10:46 +0200 Subject: [PATCH] ping6: add switch for not reading --- netpfga/ping_ipv6_addresses.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/netpfga/ping_ipv6_addresses.sh b/netpfga/ping_ipv6_addresses.sh index a0ffa97..42c25c1 100755 --- a/netpfga/ping_ipv6_addresses.sh +++ b/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