mirror of
https://github.com/unraid/webgui.git
synced 2026-03-13 22:40:17 -05:00
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:
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user