From df4172dadb5f42c0b24ebb95e96274b41f0f45be Mon Sep 17 00:00:00 2001 From: opensides Date: Thu, 22 Oct 2009 19:51:30 +0000 Subject: [PATCH] - fix for debian bug 535872 git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@14620 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/scripts/net-resolver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.30.2