This commit is contained in:
Páll Guðjón Sigurðsson 2010-11-08 21:23:13 +00:00
parent 2c1ae33ee4
commit 69418e7d40
1 changed files with 2 additions and 2 deletions

View File

@ -20,9 +20,9 @@ for ip in $IPS; do
if [ $? -gt 0 ]; then
HOSTN=$ip
else
HOSTN=`echo $RES | head -n 1 | sed 's/.*name pointer //'`
HOSTN=`echo $RES | head -n 1 | sed 's/.*name pointer //' | sed 's/\.$//'`
fi
echo $ip = $HOSTN
addhost --host $HOSTN --ip $ip --group misc
addhost --host $HOSTN --ip $ip --group misc --templates autodiscover
done