[-]
[+]
|
Changed |
inventory-system.changes
|
|
[-]
[+]
|
Changed |
_service:set_version:inventory-system.spec
^
|
|
[-]
[+]
|
Changed |
inventory-system.spec
^
|
|
[-]
[+]
|
Changed |
_service:recompress:tar_scm:inventory-system-0.0.8738.tar.bz2/SUPPORTED_OS
^
|
@@ -1,11 +1,13 @@
* client side tested operating systems
CentOS 5.x
CentOS 6.x
+CentOS 7.x
Citrix XenServer 6.x
Debian 6.x
Debian 7.x
RHEL 5.x
RHEL 6.x
+RHEL 7.x
openSUSE 12.1
openSUSE 12.2
openSUSE 12.3
|
[-]
[+]
|
Changed |
_service:recompress:tar_scm:inventory-system-0.0.8738.tar.bz2/client/inventory-system.sh
^
|
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
# Inventory System
# Author: Carsten Schoene
-# $LastChangedDate: 2014-03-04 21:15:15 +0100 (Tue, 04 Mar 2014) $
-# $Rev: 8034 $
+# $LastChangedDate: 2014-07-11 13:23:27 +0200 (Fri, 11 Jul 2014) $
+# $Rev: 8738 $
#
# Default options (can be changed by inventory-system.conf)
DEBUG="yes"
@@ -18,6 +18,7 @@
id
sed
grep
+find
sort
tail
head
@@ -314,7 +315,11 @@
[ "`is_disabled $FUNCNAME`" == "1" ] && return
MAC=${1}
debug ${MAC}
- ${IFCONFIG} -a | ${GREP} -i ${MAC} | ${AWK} '{print $1}' | ${HEAD} -n1
+ if [ -d /sys/class/net ] ; then
+ ${FIND} -L /sys/class/net -maxdepth 2 -name address -exec ${GREP} -iH ${MAC} {} \; 2>/dev/null | ${AWK} -F/ '{print $5}' | ${HEAD} -n1
+ else
+ ${IFCONFIG} -a | ${GREP} -i ${MAC} | ${AWK} '{print $1}' | ${HEAD} -n1
+ fi
}
# get link state for interface from ethtool
|
[-]
[+]
|
Changed |
_service:recompress:tar_scm:inventory-system-0.0.8738.tar.bz2/contrib/inventory.php
^
|
@@ -4,7 +4,7 @@
// 2012-11-08 - Carsten Schoene <cs@linux-administrator.com>
-// http://carsten .schoene.cc/
+// http://carsten.schoene.cc/
# Settings
@@ -79,13 +79,6 @@
function htmlStyles () {
echo '
- <script type="text/javascript">
- function popup (url) {
- popup = window.open(url, "Icinga", "width=1024,height=800,resizable=yes");
- popup.focus();
- return false;
- }
- </script>
<style type="text/css">
.status { font-family: arial,serif; background-color: white; color: black; }
|
[-]
[+]
|
Changed |
_service:set_version:inventory-system.dsc
^
|
@@ -2,7 +2,7 @@
Source: inventory-system
Binary: inventory-system
Architecture: any
-Version: 0.0.8034
+Version: 0.0.8738
Maintainer: Carsten Schoene <cs@linux-administrator.com>
Standards-Version: 0.0.1
Build-Depends: cdbs, cmake, debhelper
|