summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-02 16:41:05 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-02 16:42:11 -0800
commit54c832060d5955111fc6299d8eca0f4d1bacbaec (patch)
treeece0388277cda5b90721b86a3ff2335a0ecd2814 /scripts
parent445446c859bf5f4b6f4487b1e97c5d5d7ccd3464 (diff)
downloadvyatta-cfg-quagga-54c832060d5955111fc6299d8eca0f4d1bacbaec.tar.gz
vyatta-cfg-quagga-54c832060d5955111fc6299d8eca0f4d1bacbaec.zip
Mark the Vyatta specific section of inittab
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");