From: opensides Date: Thu, 22 Oct 2009 19:51:30 +0000 (+0000) Subject: - fix for debian bug 535872 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=df4172dadb5f42c0b24ebb95e96274b41f0f45be;p=gosa.git - fix for debian bug 535872 git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@14620 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/scripts/net-resolver.sh b/contrib/scripts/net-resolver.sh index 98364c271..52fa1a7ac 100755 --- a/contrib/scripts/net-resolver.sh +++ b/contrib/scripts/net-resolver.sh @@ -17,7 +17,7 @@ done mac="" ip=$(LANG=C $host $1 | grep address | head -n1 | sed 's/^.*[^0-9]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/g') -if $fping -c1 -r3 -t500 $ip &> /dev/null; then +if $fping -c1 -r3 -t500 $ip >/dev/null 2>&1; then mac=$($arp -n | awk "/^$ip/ {print \$3}") fi echo "$ip;$mac"