Undo previous change of updating both syslinux/syslinux.cfg and EFI/boot/syslinux.cfg.

Instead now EFI/boot/syslinux.cfg consists of a single line:
  include /syslinux/syslinux.cfg
Hence only need to maintain single copy.
This commit is contained in:
Tom Mortensen
2017-06-20 13:03:09 -07:00
parent a49301be4a
commit 114038bbab
2 changed files with 0 additions and 5 deletions

View File

@@ -388,7 +388,6 @@ switch ($action) {
if ($boolModded) {
// Write Changes to syslinux.cfg
file_put_contents('/boot/syslinux/syslinux.cfg', implode('', $arrSyslinuxCfg));
@copy('/boot/syslinux/syslinux.cfg', '/boot/EFI/boot/syslinux.cfg');
}
$arrResponse = ['success' => true, 'modified' => $boolModded];
@@ -412,7 +411,6 @@ switch ($action) {
if ($boolModded) {
// Write Changes to syslinux.cfg
file_put_contents('/boot/syslinux/syslinux.cfg', implode('', $arrSyslinuxCfg));
@copy('/boot/syslinux/syslinux.cfg', '/boot/EFI/boot/syslinux.cfg');
}
$arrResponse = ['success' => true, 'modified' => $boolModded];

View File

@@ -14,9 +14,6 @@
write_log("Saving file $file");
exec("mkdir -p ".escapeshellarg(dirname($file)));
file_put_contents($file, str_replace(["\r\n","\r"], "\n", $_POST['text']));
// syslinux.cfg hack
if ($file == "/boot/syslinux/syslinux.cfg")
@copy("/boot/syslinux/syslinux.cfg", "/boot/EFI/boot/syslinux.cfg");
// discard settings
$save = false;
?>