source: client/shared/scripts/deployImage @ b0d505f6

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 b0d505f6 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
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
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
28echo "Realizando un updateCache REPO $2.img $5 $6"
29updateCache REPO $2.img $5 $6
30RETVAL=$?
31if [ "$RETVAL" != "0" ]
32then
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       
38else
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
44fi
Note: See TracBrowser for help on using the repository browser.