diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php index e13ee7907b..aa78b3a28c 100755 --- a/usr/local/www/system_advanced.php +++ b/usr/local/www/system_advanced.php @@ -210,7 +210,8 @@ if ($_POST) { } else { foreach($etc_ttys as $tty) { if(stristr($tty,"ttyv0") <> true) { - fwrite($fout, $tty . "\n"); + if($tty <> "") + fwrite($fout, $tty . "\n"); } } if(isset($pconfig['enableserial']))