Menu="Flash" Title="Syslinux Configuration" Tag="edit" --- > Use this page to make changes to your `syslinux.cfg` file. > You will need to reboot your server for these changes to take effect. function strip($area) { return preg_replace(["/^ /","/\n /","/\n$/"],["","\n",""],$area); } $file = '/boot/syslinux/syslinux.cfg'; $menu = file_get_contents($file); $default = @file_get_contents("$file-") ?: $menu; $text = preg_replace(["/\r\n/","/\r/","/\n$/"],["\n","\n",""],$menu); $text2 = preg_replace(["/\r\n/","/\r/","/\n$/"],["\n","\n",""],$default); $menu = array_map('strip',explode('label ',$text)); $default = array_map('strip',explode('label ',$text2)); $global = 'Global Configuration'; $boot = 'menu default'; ?>