summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2019-02-13 10:28:06 +0100
committerIrina Gómez <irinagomez@us.es>2019-02-13 10:28:06 +0100
commit178c3f6de9d69798c27e1b42d408e5d47b4b181f (patch)
treea6356ecb7f8094f63304aacb0f0d2e914e197f46 /admin/WebConsole
parent1c74bf58d1ae23135cd50f00613b643d15b58ac9 (diff)
#802 setclientmode: Crea configuración PXE para BIOS y UEFI. Permite pasar la información de acceso a la base de datos en un fichero.
Diffstat (limited to 'admin/WebConsole')
-rw-r--r--admin/WebConsole/gestores/gestor_pxe_grub4dos.php2
-rw-r--r--admin/WebConsole/jscripts/boot_grub4dos.js3
-rw-r--r--admin/WebConsole/principal/boot_grub4dos.php3
3 files changed, 5 insertions, 3 deletions
diff --git a/admin/WebConsole/gestores/gestor_pxe_grub4dos.php b/admin/WebConsole/gestores/gestor_pxe_grub4dos.php
index 08726cda..641297ea 100644
--- a/admin/WebConsole/gestores/gestor_pxe_grub4dos.php
+++ b/admin/WebConsole/gestores/gestor_pxe_grub4dos.php
@@ -23,7 +23,7 @@ foreach ($lista as $sublista) {
$optboot=$elementos[0];
// Llamamos al script setclientmode
- shell_exec("/opt/opengnsys/bin/setclientmode $optboot $hostname 1 $file");
+ shell_exec("/opt/opengnsys/bin/setclientmode $optboot $hostname PERM $file");
unlink($file);
}
}
diff --git a/admin/WebConsole/jscripts/boot_grub4dos.js b/admin/WebConsole/jscripts/boot_grub4dos.js
index b4f6f9c3..842501b5 100644
--- a/admin/WebConsole/jscripts/boot_grub4dos.js
+++ b/admin/WebConsole/jscripts/boot_grub4dos.js
@@ -63,8 +63,9 @@ function allSelect()
var input = document.getElementsByTagName('select');
for(var i=0; i<input.length; i++){
-
label = input[i].parentNode.id;
+ // La plantilla 00unknown no existe, no se incluye en el listado
+ if (label === "00unknown") continue;
for (j=0;j<input[i].length;j++)
{
diff --git a/admin/WebConsole/principal/boot_grub4dos.php b/admin/WebConsole/principal/boot_grub4dos.php
index 2bd04c09..2ea9e144 100644
--- a/admin/WebConsole/principal/boot_grub4dos.php
+++ b/admin/WebConsole/principal/boot_grub4dos.php
@@ -163,8 +163,9 @@ for($i=0; $i<count($pn); $i++) {
if ($pn[$i]==$desconocido)
{$listadopxe=listadesconocido($cmd,$desconocido,$seleccion);
if ($existe!==""){
+ $description=$desconocido;
echo "<td></td>";
- echo "<td id='$description'> <font color=red>";
+ echo "<td><font id='$description' color=red>";
echo $description;
echo " <br>";
echo "<input type='button' onClick='move(this.form.L" . $pn[$i] . ",this.form.Lpxe)' value='OUT' style='height: 25px; width: 50px' >";