diff options
author | ramon <ramongomez@us.es> | 2015-11-09 11:56:02 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2015-11-09 11:56:02 +0000 |
commit | e38ac223dae8600ce2900704c2923a86f6e58b09 (patch) | |
tree | 68050972bf0122005d89046c6043962f64d8b251 /admin/WebConsole/includes/tftputils.php | |
parent | 0ab2cd56483c0e99f1742b13bbe6f4eea926aaf6 (diff) |
#725: Cargar datos de servidor NTP en las plantillas PXE/TFTP.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4722 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/includes/tftputils.php')
-rw-r--r-- | admin/WebConsole/includes/tftputils.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/admin/WebConsole/includes/tftputils.php b/admin/WebConsole/includes/tftputils.php index 13b126f3..26b973d9 100644 --- a/admin/WebConsole/includes/tftputils.php +++ b/admin/WebConsole/includes/tftputils.php @@ -70,7 +70,7 @@ function createBootMode ($cmd, $bootopt, $hostid, $lang) { $cmd->texto="SELECT ordenadores.nombreordenador AS hostname, ordenadores.ip AS ip, ordenadores.mac AS mac, ordenadores.netiface AS netiface, aulas.netmask AS netmask, aulas.router AS router, - aulas.dns AS dns, aulas.proxy AS proxy, + aulas.ntp AS ntp, aulas.dns AS dns, aulas.proxy AS proxy, aulas.nombreaula AS grupo, repositorios.ip AS iprepo, (SELECT ipserveradm FROM entornos LIMIT 1) AS ipserveradm, menus.resolucion AS vga, perfileshard.winboot AS winboot @@ -91,6 +91,7 @@ function createBootMode ($cmd, $bootopt, $hostid, $lang) { $netiface=$rs->campos["netiface"]; $netmask=$rs->campos["netmask"]; $router=$rs->campos["router"]; + $ntp=$rs->campos["ntp"]; $dns=$rs->campos["dns"]; $proxy=$rs->campos["proxy"]; $group=cleanString($rs->campos["grupo"]); @@ -123,6 +124,7 @@ function createBootMode ($cmd, $bootopt, $hostid, $lang) { " oglog=$server" . " ogshare=$server"; // Añadir parámetros opcionales. + if (! empty ($ntp)) { $infohost.=" ogntp=$ntp"; } if (! empty ($dns)) { $infohost.=" ogdns=$dns"; } if (! empty ($proxy)) { $infohost.=" ogproxy=$proxy"; } if (! empty ($winboot)) { $infohost.=" winboot=$winboot"; } |