Versión 1.0.4, #414: Corregir errata al crear ficheros en distribuciones distintas a Ubuntu.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3203 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/debian-pkg
parent
dc5e48a83f
commit
efe8ac7528
|
@ -187,19 +187,13 @@ while (!$rs->EOF)
|
|||
}
|
||||
$rs->Cerrar();
|
||||
|
||||
|
||||
|
||||
fwrite($gestion, " \n");
|
||||
fwrite($gestion, "PROMPT " . $prompt ." \n");
|
||||
fwrite($gestion, "TIMEOUT " . $timeout . " \n");
|
||||
fwrite($gestion, " \n");
|
||||
fclose($gestion);
|
||||
exec("chown www-data:www-data $macfile");
|
||||
exec("chmod 777 $macfile");
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function netmask2cidr($netmask) {
|
||||
|
|
|
@ -128,9 +128,7 @@ $macfile="$pxedir/01-" . str_replace(":","-",strtoupper($mac));
|
|||
#controlar optboot
|
||||
|
||||
exec("sed -e 's/vga=...//g' -e 's/INFOHOST/$infohost/g' $pxedir/templates/$optboot > $macfile");
|
||||
exec("chown www-data:www-data $macfile");
|
||||
exec("chmod 777 $macfile");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -142,7 +140,7 @@ function netmask2cidr($netmask) {
|
|||
}
|
||||
}
|
||||
return $cidr;
|
||||
}
|
||||
}
|
||||
|
||||
// Sustituye espacio por "_" y quita acentos y tildes.
|
||||
function cleanString ($cadena) {
|
||||
|
@ -152,3 +150,4 @@ function cleanString ($cadena) {
|
|||
}
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -230,7 +230,7 @@ echo $fotoordenador?>">
|
|||
|
||||
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
|
||||
<tr>
|
||||
<th colspan="3" align="center"><sup>*</sup> <?php echo $TbMsg["WARN_NETBOOT"]?></th>
|
||||
<th colspan="4" align="center"><sup>*</sup> <?php echo $TbMsg["WARN_NETBOOT"]?></th>
|
||||
</tr>
|
||||
|
||||
</TABLE>
|
||||
|
|
Loading…
Reference in New Issue