summaryrefslogtreecommitdiffstats
path: root/client/engine/Inventory.lib
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2016-05-30 12:44:37 +0000
committeririna <irinagomez@us.es>2016-05-30 12:44:37 +0000
commitaaf5f9fb2ff00ccb8ca7ae01592f625d979c3a61 (patch)
treeaaf7e2eee358cde41a21707b157230293ff2fc7c /client/engine/Inventory.lib
parentb19d6782843ff90a9df5e90d7d1bc51db9e10850 (diff)
#713 ogListHardwareInfo: Si no existen varios bancos de memoria muestra la memoria total del sistema. ogAdmBD.sql: se corrige errata en los iconos de inventario
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4949 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/Inventory.lib')
-rwxr-xr-xclient/engine/Inventory.lib10
1 files changed, 8 insertions, 2 deletions
diff --git a/client/engine/Inventory.lib b/client/engine/Inventory.lib
index 848cd754..6a9e9d72 100755
--- a/client/engine/Inventory.lib
+++ b/client/engine/Inventory.lib
@@ -279,7 +279,7 @@ if [ "$*" == "help" ]; then
return
fi
-# RecopilaciĆ³n de disposibivos procesando la salida de \c lshw
+# RecopilaciĆ³n de dispositivos procesando la salida de \c lshw
ogEcho info "$MSG_HARDWAREINVENTORY}"
echo "cha=$(dmidecode -s chassis-type)" | grep -v "Other"
[ -e /sys/firmware/efi ] && echo "boo=UEFI" || echo "boo=BIOS"
@@ -298,11 +298,15 @@ lshw | awk 'BEGIN {type="mod";}
if (prod=="v."vers)
vers="";
print type"="vend,prod,size,vers;} }
+ if (type=="totalmem") {
+ totalmemory="mem="size;
+ }
type=prod=vend=vers=size=clock=slot="";}
$1~/-core/ {type="boa";}
$1~/-firmware/ {type="bio";}
$1~/-cpu/ {type="cpu";}
$1~/-bank/ {type="mem";}
+ $1~/-memory/ {type="totalmem";}
$1~/-ide/ {type="ide";}
$1~/-storage/ {type="sto";}
$1~/-disk/ {type="dis";}
@@ -314,7 +318,9 @@ lshw | awk 'BEGIN {type="mod";}
$1~/-firewire/ {type="fir";}
$1~/-serial/ {type="bus";}
END {if (type!="" && prod!="")
- print type"="vend,prod,size,vers;}
+ print type"="vend,prod,size,vers;
+ if ( length(numbank) == 0 && length(totalmemory) >=4 )
+ print totalmemory; }
'
# */ (comentario para Doxygen)
}