Changes of Revision 49
[-] | Changed | _service:set_version:inventory-system.spec |
1
2 %define pkgname inventory-system 3 Name: inventory-system 4 Release: 0 5 -Version: 0.0.rev1619 6 +Version: 0.0.rev1621 7 Url: http://www.linux-administrator.com/ 8 License: GPLv2 9 Group: System 10 |
||
[+] | Changed | _service:recompress:tar_scm:inventory-system-0.0.rev1621.tar.bz2/client/inventory-system.sh ^ |
@@ -1,8 +1,8 @@ #!/bin/bash # Inventory System # Author: Carsten Schoene -# $LastChangedDate: 2012-07-20 17:07:50 +0200 (Fri, 20 Jul 2012) $ -# $Rev: 1618 $ +# $LastChangedDate: 2012-07-21 10:21:33 +0200 (Sat, 21 Jul 2012) $ +# $Rev: 1621 $ # # Default options (can be changed by inventory-system.conf) DEBUG="yes" @@ -127,7 +127,7 @@ if [ "${TYPE}" == "" ] ; then TYPE="baremetal" fi - debug "SYSTEM-TYOE: ${TYPE}" + debug "SYSTEM-TYPE: ${TYPE}" echo ${TYPE} else debug "VIRT-WHAT ERROR: ${RETVAL}" @@ -277,14 +277,13 @@ ${MODPROBE} ipmi_si 2>/dev/null ${IPMITOOL} lan print 1 2>&1 >/dev/null if [ $? == 0 ] ; then - IP=`${IPMITOOL} lan print 1 | ${GREP} -E '(^IP Address) ' | ${AWK} '{print $NF}'` + MGMTIP=`${IPMITOOL} lan print 1 | ${GREP} -E '(^IP Address) ' | ${AWK} '{print $NF}'` fi if [ -z "${IP}" ] ; then - IP="none" + MGMTIP="none" fi - debug "SYSTEM-MGMT-IP: ${IP}" - echo ${IP} - + debug "SYSTEM-MGMT-IP: ${MGMTIP}" + echo ${MGMTIP} } # get rpm package list |