From bb7bcf904c22d97e61418415ad85f2acf99429e7 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 30 Jul 2012 10:32:19 -0700 Subject: [PATCH] ipconfig can sometimes complain that the label name is > 63 chars --- CU2/check-network-change.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CU2/check-network-change.sh b/CU2/check-network-change.sh index f71011f..03b7c67 100755 --- a/CU2/check-network-change.sh +++ b/CU2/check-network-change.sh @@ -16,7 +16,7 @@ ifs=$(echo $ifs) typeset -A found ips="" for i in $ifs; do - ips_i=$(ipconfig getpacket $i | fgrep 'domain_name_server' | \ + ips_i=$(ipconfig getpacket "$i" 2> /dev/null | fgrep 'domain_name_server' | \ sed -e 's/^.*{//' -e 's/,/ /g' -e 's/}//' ) for ip_i in $ips_i; do if [ ! ${found["$ip_i"]} ]; then