summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/listSoftwareInfo
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2017-06-28 09:39:58 +0000
committerramon <ramongomez@us.es>2017-06-28 09:39:58 +0000
commit5b825b5005f46103a5aee9dcad998a90ccad96f3 (patch)
treeb6618434806e0b97b71c7a2ac9ee1cd2981d3e8e /client/shared/scripts/listSoftwareInfo
parentb6c060715171ad943a140e174592fdbc77cea754 (diff)
#730: SustituciĆ³n del nombre del proyecto en los scripts del cliente.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5388 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/listSoftwareInfo')
-rwxr-xr-xclient/shared/scripts/listSoftwareInfo11
1 files changed, 8 insertions, 3 deletions
diff --git a/client/shared/scripts/listSoftwareInfo b/client/shared/scripts/listSoftwareInfo
index e5b0da1c..1b97294c 100755
--- a/client/shared/scripts/listSoftwareInfo
+++ b/client/shared/scripts/listSoftwareInfo
@@ -1,11 +1,15 @@
#!/bin/bash
# Scirpt de ejemplo para almacenear en fichero temporal el listado de software.
-# (puede usarse como base para el programa de arranque usado por OpenGNSys Admin).
+# Nota: se usa como base para el programa de recogida de listado de software de OpenGnsys Admin.
# Formato: listSoftwareInfo [-r] ndisk npart
-# -r listado reducido (sin parches)
+# -r listado reducido (sin parches de Windows)
-PROG="$(basename $0)"
+PROG=$(basename "$0")
REDUCED="no"
+if [ "$1" = "-r" ]; then
+ REDUCED="yes"
+ shift
+fi
if [ $# -ne 2 ]; then
ogRaiseError $OG_ERR_FORMAT "$MSG_FORMAT: $PROG ndisco nparticion"
exit $?
@@ -16,6 +20,7 @@ SERVERLOGDIR=$(mount | awk -v d=$OGLOG '
BEGIN {FS="[: ]"}
{if ($4==d) dir=$2}
END {print dir}')
+
# Fichero de listado: soft-IP-ndisco-npart
SOFTFILE="soft-$(ogGetIpAddress)-$1-$2"
# Redirigir salida al fichero de listado.