From e1a37f4a319a0b0366dcebff16f64720ab4451bf Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 19 Feb 2008 16:27:48 +0000 Subject: [PATCH] Removed network resolver. It's built in gosa-si now. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8967 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/contrib/scripts/net-resolver.sh | 27 ----------------------- 1 file changed, 27 deletions(-) delete mode 100755 gosa-core/contrib/scripts/net-resolver.sh diff --git a/gosa-core/contrib/scripts/net-resolver.sh b/gosa-core/contrib/scripts/net-resolver.sh deleted file mode 100755 index bd120264a..000000000 --- a/gosa-core/contrib/scripts/net-resolver.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -# Check for number of parameters -if [ $# -ne 1 ]; then - echo Usage: $(basename $0) dns-name - exit 1 -fi - -# Check for needed commands -for cmd in /usr/bin/host /usr/bin/fping /usr/sbin/arp; do - if [ ! -x $cmd ]; then - echo $cmd command not found - aborting - exit 2 - fi - eval $(echo ${cmd##*/}=$cmd) -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 [ -z "$ip" ]; then - echo ";" - exit 0 -fi -if $fping -c1 -r3 -t500 $ip &> /dev/null; then - mac=$($arp -n | awk "/^$ip/ {print \$3}") -fi -echo "$ip;$mac" -- 2.30.2