#!/bin/bash TIME1=$SECONDS PROG="$(basename $0)" if [ $# -lt 4 ]; then ogRaiseError $OG_ERR_FORMAT "$MSG_FORMAT: $PROG REPO imagen ndisco nparticion [ UNICAST|MULTICAST|TORRENT ] [opciones protocolo]" exit $? fi #controlar param1 REPO updateCache REPO $2.img $5 $6 RC=$? if [ "$RC" != "0" ] then echo "fin del updateCache REPO $2.img $5 $6 con error $RC" # RC=15 No hay cache # RC=16 no hay espacio sufiente exit $RC else echo "iniciando un ogRestore CACHE desde deployImage" ogRestoreImage CACHE $2 $3 $4 ogExtendFs $3 $4 fi