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 5715a14 was
a012113,
checked in by ramon <ramongomez@…>, 10 years ago
|
#653: Rehacer la plantilla configureOsCustom.template para que pueda recibir 2 parámetros obligatorios (nº disco y nº partición) y otros 2 opcioneales (repositorio y nombre de imagen).
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4459 a21b9725-9963-47de-94b9-378ad31fedc9
|
-
Property mode set to
100644
|
File size:
787 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | #/** |
---|
3 | # configureOsCustom |
---|
4 | #@brief Plantilla para scirpt de configuracion personalizada de sistema operativo restaurado. |
---|
5 | #@param $1 disco |
---|
6 | #@param $2 particion |
---|
7 | #@param $3 Repositorio: CACHE, REPO o dirección IP (opcional) |
---|
8 | #@param $4 Nombre canónico de la imagen sin extensión (opcional) |
---|
9 | #@warning Renombrar este fichero como "configureOsCustom". |
---|
10 | #@note Los parámetros disco y partición son obligatorios y opcionalmente puede recibir también el repositorio y la imagen usada para en el despliegue. |
---|
11 | |
---|
12 | |
---|
13 | # Control de parámetros. |
---|
14 | [ $# -eq 2 -o $# -eq 4 ] || exit |
---|
15 | |
---|
16 | # Parámetros obligatorios. |
---|
17 | DISK="$1" |
---|
18 | PART="$2" |
---|
19 | # Parámetros opcionales. |
---|
20 | REPO="${3^^}" # En mayúsculas. |
---|
21 | IMGNAME="$4" |
---|
22 | |
---|
23 | |
---|
24 | # Añadir aquí el código de postconfiguración personalizada. |
---|
25 | |
---|
26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.