From 54c832060d5955111fc6299d8eca0f4d1bacbaec Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 2 Dec 2010 16:41:05 -0800 Subject: Mark the Vyatta specific section of inittab --- scripts/system/vyatta_update_console.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/system') 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"); -- cgit v1.2.3