blob: 58eeb71656bedf21b22619c5cfc01878a5ba56de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
// ***********************************************************************************************************
// Libreria de scripts de Javascript
// Autor:
// Fecha Creación: 2011
// Fecha Ãltima modificación: enero-2011
// Nombre del fichero: asistentes.js
// Descripción :
// Este fichero implementa las funciones javascript del fichero AsistentesEjecutarScripts.php (Comandos)
// ***********************************************************************************************************
function codeCloneRemotePartition(form){
//alert("codeCloneRemotePartition(form)");
form.codigo.value="cloneRemoteFromMaster " + form.ipMaster.value + " 1 " + form.PartOrigen.value + " " + form.mcastpuerto.value + ":" + form.mcastmodo.value + ":" + form.mcastdireccion.value + ":" + form.mcastvelocidad.value + "M:" + form.mcastnclien.value + ":" + form.mcastseg.value + " 1 " + form.PartOrigen.value + " " + form.tool.value + " " + form.compresor.value;
}
function codeDeployImage(form){
alert("codeDeployImage(form)");
switch (form.idmetodo.value)
{
case "MULTICAST":
protocol="MULTICAST " + form.mcastpuerto.value + ":" + form.mcastmodo.value + ":" + form.mcastdireccion.value + ":" + form.mcastvelocidad.value + "M:" + form.mcastnclien.value + ":" + form.mcastseg.value + " ";
break;
case "TORRENT":
protocol=" TORRENT " + form.modp2p.value + ":" + form.timep2p.value;
break;
}
//form.codigo.value="deployImage REPO /";
form.codigo.value="deployImage REPO /" + form.idimagen.value + " 1 " + form.idparticion.value + " " + protocol ;
}
function codeParticionado(form){
var value1;
var value2;
var value3;
if (form.check1.checked) {
if (form.part1.value == "CUSTOM" ) {value1 = form.part1custom.value}
else {value1 = form.part1.value};
if (form.size1.value == "CUSTOM") {value1 += ":" + form.size1custom.value}
else {value1 += ":" + form.size1.value};
}
else
{
value1 = "EMPTY:1"
}
if (form.check2.checked) {
if (form.part2.value == "CUSTOM" ) {value2 = form.part2custom.value}
else {value2 = form.part2.value};
if (form.size2.value == "CUSTOM") {value2 += ":" + form.size2custom.value}
else {value2 += ":" + form.size2.value};
}
else
{
value2 = "EMPTY:1"
}
if (form.check3.checked) {
if (form.part3.value == "CUSTOM" ) {value3 = form.part3custom.value}
else {value3 = form.part3.value};
if (form.size3.value == "CUSTOM") {value3 += ":" + form.size3custom.value}
else {value3 += ":" + form.size3.value};
}
else
{
value3 = "EMPTY:1"
}
form.codigo.value="\
ogUnmountCache \n \
ogUnmountAll 1 \n \
ogDeletePartitionTable 1 \n \
ogUpdatePartitionTable 1 \n \
initCache " + form.size4.value +" \n \
ogListPartitions 1 \n \
ogCreatePartitions 1 " + value1 + " " + value2 + " " + value3 + " \n \
ogSetPartitionActive 1 1 \n \
ogListPartitions 1";
}
|