[-]
[+]
|
Changed |
_service:set_version:inventory-system.spec
|
|
[-]
[+]
|
Changed |
inventory-system.spec
^
|
|
[-]
[+]
|
Changed |
_service:recompress:tar_scm:inventory-system-0.0.rev4204.tar.bz2/client/inventory-system.sh
^
|
@@ -1,8 +1,8 @@
#!/bin/bash
# Inventory System
# Author: Carsten Schoene
-# $LastChangedDate: 2012-09-17 21:53:15 +0200 (Mon, 17 Sep 2012) $
-# $Rev: 1851 $
+# $LastChangedDate: 2012-11-01 21:23:16 +0100 (Thu, 01 Nov 2012) $
+# $Rev: 4204 $
#
# Default options (can be changed by inventory-system.conf)
DEBUG="yes"
@@ -195,7 +195,7 @@
# autoupdate function
function autoupdate {
[ "`is_disabled $FUNCNAME`" == "1" ] && return
- PKG=`rpm -qf --queryformat '%{name}\n' $0 | ${GREP} -v "^file /"`
+ PKG=`${RPM} -qf --queryformat '%{name}\n' $0 | ${GREP} -v "^file /"`
YUM=`which yum 2>/dev/null`
ZYP=`which zypper 2>/dev/null`
if [ -n "${PKG}" ] ; then
|
[-]
[+]
|
Added |
addon-functions.sh
^
|
@@ -0,0 +1,10 @@
+# get OS image setup type
+function get_system_type_osimage {
+ if [ -f /etc/system-image.conf ] ; then
+ . /etc/system-image.conf
+ else
+ OS_SYSTEM_TYPE=unknown
+ fi
+ debug "OS-SYSTEM-TYPE: ${OS_SYSTEM_TYPE}"
+ echo ${OS_SYSTEM_TYPE}
+}
|