summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/system/vyatta_update_console.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/system/vyatta_update_console.pl b/scripts/system/vyatta_update_console.pl
index 6b7ec11b..387a37b3 100755
--- a/scripts/system/vyatta_update_console.pl
+++ b/scripts/system/vyatta_update_console.pl
@@ -55,12 +55,14 @@ sub update_inittab {
or die "Can't open $TMPTAB: $!";
# Clone original inittab but remove all references to serial lines
- print {$tmp} grep { ! /^T/ } <$inittab>;
+ print {$tmp} grep { ! /^T|^# Vyatta/ } <$inittab>;
close $inittab;
my $config = new Vyatta::Config;
$config->setLevel("system console device");
+ print {$tmp} "# Vyatta console configuration (do not modify)\n";
+
my $id = 0;
foreach my $tty ($config->listNodes()) {
my $speed = $config->returnValue("$tty speed");