close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
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
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | #/** |
|---|
| 4 | # deployImage |
|---|
| 5 | #@brief Actualiza la cache del cliente con una imagen, y la restaura en la partición. |
|---|
| 6 | #@param 1 |
|---|
| 7 | #@param ejemplo: |
|---|
| 8 | #@return |
|---|
| 9 | #@exception OG_ERR_FORMAT formato incorrecto. |
|---|
| 10 | #@note |
|---|
| 11 | #@todo: |
|---|
| 12 | #@version 0.9.1 - integracion EAC |
|---|
| 13 | #@author Antonio J. Doblas Viso. Universidad de Malaga. |
|---|
| 14 | #@date 2008/03/17 |
|---|
| 15 | #@version 0.9.2 - integracion OpenGnsys |
|---|
| 16 | #@author Antonio J. Doblas Viso. Universidad de Malaga. |
|---|
| 17 | #@date 2010/07/27 |
|---|
| 18 | #*/ ## |
|---|
| 19 | |
|---|
| 20 | TIME1=$SECONDS |
|---|
| 21 | PROG="$(basename $0)" |
|---|
| 22 | if [ $# -lt 4 ]; then |
|---|
| 23 | ogRaiseError $OG_ERR_FORMAT "$MSG_FORMAT: $PROG REPO imagen ndisco nparticion [ UNICAST|MULTICAST|TORRENT ] [opciones protocolo]" |
|---|
| 24 | exit $? |
|---|
| 25 | fi |
|---|
| 26 | |
|---|
| 27 | #controlar param1 REPO |
|---|
| 28 | echo "Realizando un updateCache REPO $2.img $5 $6" |
|---|
| 29 | updateCache REPO $2.img $5 $6 |
|---|
| 30 | RETVAL=$? |
|---|
| 31 | if [ "$RETVAL" != "0" ] |
|---|
| 32 | then |
|---|
| 33 | echo "fin del updateCache REPO $2.img $5 $6 con error $RETVAL" |
|---|
| 34 | # RC=15 No hay cache |
|---|
| 35 | # RC=16 no hay espacio sufiente |
|---|
| 36 | exit $RETVAL |
|---|
| 37 | |
|---|
| 38 | else |
|---|
| 39 | echo "iniciando un ogRestore CACHE desde deployImage" |
|---|
| 40 | ogRestoreImage CACHE /$2 $3 $4 |
|---|
| 41 | RETVAL=$? |
|---|
| 42 | [ "$RETVAL" == "0" ] && configureOs $3 $4 |
|---|
| 43 | exit $RETVAL |
|---|
| 44 | fi |
|---|
Note: See
TracBrowser
for help on using the repository browser.