[-]
[+]
|
Changed |
_service:set_version:ix-inventory-system.spec
|
|
[-]
[+]
|
Changed |
_service:recompress:tar_scm:inventory-system-0.1.1.tar.bz2/client/cron.daily
^
|
@@ -3,6 +3,7 @@
/usr/sbin/inventory-system --update | $(which logger) -t inventory-system-autoupdate
fi
if [ -x /usr/sbin/inventory-system ] ; then
+ sleep $(expr $RANDOM / 12)
/usr/sbin/inventory-system | $(which logger) -t inventory-system
fi
|
[-]
[+]
|
Changed |
_service:recompress:tar_scm:inventory-system-0.1.1.tar.bz2/client/inventory-system.sh
^
|
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
# Inventory System
# Author: Carsten Schoene
-# $LastChangedDate: 2015-07-24 12:30:57 +0200 (Fri, 24 Jul 2015) $
-# $Rev: 10423 $
+# $LastChangedDate: 2015-08-06 12:05:21 +0200 (Thu, 06 Aug 2015) $
+# $Rev: 10469 $
#
# Default options (can be changed by inventory-system.conf)
DEBUG="yes"
@@ -426,9 +426,9 @@
SECCHECK=`LANG=C ${FDISK} -l ${RD} 2>/dev/null | ${GREP} "^Disk /" | ${GREP} sectors$`
if [ -z "${SECCHECK}" ] ; then
# / 1000 nicht / 1024 bei physikalischen Festplatten
- SIZE=`LANG=C ${FDISK} -l ${RD} 2>/dev/null | ${GREP} "^Disk /" | ${AWK} '{print $(NF-1)/1000/1000 }'`
+ SIZE=`LANG=C ${FDISK} -l ${RD} 2>/dev/null | ${GREP} "^Disk /" | ${AWK} '{ print int($(NF-1)/1000/1000) }'`
else
- SIZE=`LANG=C ${FDISK} -l ${RD} 2>/dev/null | ${GREP} "^Disk /" | ${AWK} '{print $(NF-3)/1000/1000 }'`
+ SIZE=`LANG=C ${FDISK} -l ${RD} 2>/dev/null | ${GREP} "^Disk /" | ${AWK} '{ print int($(NF-3)/1000/1000) }'`
fi
debug "SYSTEM-ROOT-DEV: ${RD}"
debug "SYSTEM-ROOTDEV-SIZE: ${SIZE}"
@@ -483,9 +483,9 @@
SECCHECK=`LANG=C ${FDISK} -l ${RD} 2>/dev/null | ${GREP} "^Disk /" | ${GREP} sectors$`
if [ -z "${SECCHECK}" ] ; then
# / 1000 nicht / 1024 bei physikalischen Festplatten
- SIZE=`LANG=C ${FDISK} -l ${RD} 2>/dev/null | ${GREP} "^Disk /" | ${AWK} '{print $(NF-1)/1000/1000 }'`
+ SIZE=`LANG=C ${FDISK} -l ${RD} 2>/dev/null | ${GREP} "^Disk /" | ${AWK} '{ print int($(NF-1)/1000/1000) }'`
else
- SIZE=`LANG=C ${FDISK} -l ${RD} 2>/dev/null | ${GREP} "^Disk /" | ${AWK} '{print $(NF-3)/1000/1000 }'`
+ SIZE=`LANG=C ${FDISK} -l ${RD} 2>/dev/null | ${GREP} "^Disk /" | ${AWK} '{ print int($(NF-3)/1000/1000) }'`
fi
debug "SYSTEM-ROOT-DEV: ${RD}"
|
[-]
[+]
|
Changed |
_service:set_version:debian.changelog
^
|
@@ -1,4 +1,4 @@
-ix-inventory-system (0.0.10423) stable; urgency=low
+ix-inventory-system (0.1.1) stable; urgency=low
* Initial Release
|
[-]
[+]
|
Changed |
_service:set_version:ix-inventory-system.dsc
^
|
@@ -2,7 +2,7 @@
Source: ix-inventory-system
Binary: ix-inventory-system
Architecture: any
-Version: 0.0.10423
+Version: 0.1.1-1
Maintainer: Carsten Schoene <cs@linux-administrator.com>
Standards-Version: 0.0.1
Build-Depends: cdbs, cmake, debhelper
|