Commit f2d200cd authored by Franco Fichtner's avatar Franco Fichtner

serial: tweak previous

parent 69ad2a3f
......@@ -285,14 +285,14 @@ function setup_serial_port($sync = true)
}
$boot_config_split = explode("\n", $boot_config);
$fd = fopen($boot_config_file,"w");
if($fd) {
foreach($boot_config_split as $bcs) {
if(stristr($bcs, "-D") || stristr($bcs, "-h")) {
/* DONT WRITE OUT, WE'LL DO IT LATER */
} else {
if($bcs <> "")
fwrite($fd, "{$bcs}\n");
$fd = @fopen($boot_config_file, 'w');
if ($fd) {
foreach ($boot_config_split as $bcs) {
if (stristr($bcs, '-D') || stristr($bcs, '-h')) {
continue;
}
if ($bcs != '') {
@fwrite($fd, "{$bcs}\n");
}
}
if ($serial_enabled) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment