mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
serial: tweak previous
This commit is contained in:
parent
69ad2a3fc1
commit
f2d200cdc9
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user