summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2016-05-13 17:09:02 +0000
committerramon <ramongomez@us.es>2016-05-13 17:09:02 +0000
commit7a590120f48ac96fd91381b31a8450102c26e471 (patch)
tree2748c7f855a7e658c68cd7cbee8f58dfe06aae56
parentac933ca816520c5495a07c255b399463d4b4fefe (diff)
#713: Refinar en la detección de nº de serie correcto.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4930 a21b9725-9963-47de-94b9-378ad31fedc9
-rwxr-xr-xclient/engine/Inventory.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/engine/Inventory.lib b/client/engine/Inventory.lib
index 86b649ce..848cd754 100755
--- a/client/engine/Inventory.lib
+++ b/client/engine/Inventory.lib
@@ -253,7 +253,7 @@ if [ "$*" == "help" ]; then
fi
# Obtener nº de serie (ignorar los no especificados)
-dmidecode -s system-serial-number | egrep -vi "( +|not specified|filled by o.e.m.)"
+dmidecode -s system-serial-number | egrep -vi "(^[ 0]+$|not specified|filled by o.e.m.)"
}