918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Rev | Line | |
---|
[a2a8296] | 1 | #!/bin/bash |
---|
[ea7186c] | 2 | # Scirpt de ejemplo para almacenear en fichero temporal el listado de software. |
---|
| 3 | # (puede usarse como base para el programa de arranque usado por OpenGNSys Admin). |
---|
| 4 | |
---|
| 5 | PROG="$(basename $0)" |
---|
| 6 | if [ $# -ne 2 ]; then |
---|
| 7 | ogRaiseError $OG_ERR_FORMAT "$MSG_FORMAT: $PROG ndisco nparticion" |
---|
| 8 | exit $? |
---|
| 9 | fi |
---|
| 10 | |
---|
| 11 | # Fichero de listado de software (en el directorio de logs de clientes). |
---|
| 12 | LOGSDIR=$(awk '$1~/log/ {dir=$1} END {print dir}' /etc/exports) |
---|
| 13 | SOFTFILE="$LOGSDIR/soft-$(ogGetIpAddress)-$1-$2" |
---|
| 14 | # Redirigir salida al fichero de listado. |
---|
| 15 | ogListSoftware "$1" "$2" >$SOFTFILE |
---|
Note: See
TracBrowser
for help on using the repository browser.