source: client/shared/scripts/deployImage @ b366f7c

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
Last change on this file since b366f7c was 841ce50, checked in by adv <adv@…>, 14 years ago

version 1.0.2 boot-tools #404 #420 id.version instalador

git-svn-id: https://opengnsys.es/svn/branches/version1.0@2258 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 1.1 KB
RevLine 
[914d834]1#!/bin/bash
2
[841ce50]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
[914d834]20TIME1=$SECONDS
21PROG="$(basename $0)"
22if [ $# -lt 4 ]; then
23    ogRaiseError $OG_ERR_FORMAT "$MSG_FORMAT: $PROG REPO imagen ndisco nparticion [ UNICAST|MULTICAST|TORRENT ] [opciones protocolo]"
24    exit $?
25fi
26
27#controlar param1 REPO
[cea6d44]28echo "Realizando un updateCache REPO $2.img $5 $6"
[914d834]29updateCache REPO $2.img $5 $6
[cea6d44]30RETVAL=$?
31if [ "$RETVAL" != "0" ]
[914d834]32then
[cea6d44]33        echo "fin del updateCache REPO $2.img $5 $6 con error $RETVAL"
[d196782]34        # RC=15 No hay cache
35        # RC=16 no hay espacio sufiente
[cea6d44]36        exit $RETVAL
[d196782]37       
[914d834]38else
[d196782]39        echo "iniciando un ogRestore CACHE desde deployImage"
[cea6d44]40        ogRestoreImage CACHE /$2 $3 $4
41        RETVAL=$?
[599597b]42        [ "$RETVAL" == "0" ] && configureOs $3 $4
[cea6d44]43        exit $RETVAL
[914d834]44fi
Note: See TracBrowser for help on using the repository browser.