@@ -1,8 +1,8 @@
#!/bin/bash
# Inventory System
# Author: Carsten Schoene
-# $LastChangedDate: 2012-07-21 10:21:33 +0200 (Sat, 21 Jul 2012) $
-# $Rev: 1621 $
+# $LastChangedDate: 2012-07-21 10:36:52 +0200 (Sat, 21 Jul 2012) $
+# $Rev: 1622 $
#
# Default options (can be changed by inventory-system.conf)
DEBUG="yes"
@@ -279,7 +279,7 @@
if [ $? == 0 ] ; then
MGMTIP=`${IPMITOOL} lan print 1 | ${GREP} -E '(^IP Address) ' | ${AWK} '{print $NF}'`
fi
- if [ -z "${IP}" ] ; then
+ if [ -z "${MGMTIP}" ] ; then
MGMTIP="none"
fi
debug "SYSTEM-MGMT-IP: ${MGMTIP}"
|