summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/includes/tftputils.php
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-07-29 13:14:44 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-07-29 20:25:26 +0200
commitbb992f97f3c29373cc109efa0b974accf682c47a (patch)
treea20e9bb89d6c5dd79247371b40cbb83c3b64a975 /admin/WebConsole/includes/tftputils.php
parent4221a82c7a25efdca601dffa62a0de1850de8976 (diff)
#993 Send REST request in createBootMode(...)
This patch replaces a call to the 'setclientmode' script in createBootMode() function for a REST request to the ogServer.
Diffstat (limited to 'admin/WebConsole/includes/tftputils.php')
-rw-r--r--admin/WebConsole/includes/tftputils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/includes/tftputils.php b/admin/WebConsole/includes/tftputils.php
index aca054a5..d5d857a2 100644
--- a/admin/WebConsole/includes/tftputils.php
+++ b/admin/WebConsole/includes/tftputils.php
@@ -10,6 +10,7 @@
// Ficheros de inclusión.
include_once("../includes/ctrlacc.php");
include_once("../clases/AdoPhp.php");
+include_once("../includes/restfunctions.php");
// Directorio de ficheros PXE.
define("PXEDIRBIOS", "/opt/opengnsys/tftpboot/menu.lst");
@@ -97,8 +98,7 @@ function createBootMode ($cmd, $bootopt, $hostname, $lang) {
// Descripción plantilla PXE
$description=exec("awk 'NR==1 {print $2}' ".PXEDIRBIOS."/templates/".$bootopt);
if ($description === "") $description=exec("awk 'NR==1 {print $2}' ".PXEDIRUEFI."/templates/".$bootopt);
- // Llamamos al script setclientmode
- shell_exec("export LANG=$lang $acceso; /opt/opengnsys/bin/setclientmode $description $hostname PERM");
+ set_mode($hostname, $bootopt);
}