diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-12-02 16:41:05 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-12-02 16:42:11 -0800 |
commit | 54c832060d5955111fc6299d8eca0f4d1bacbaec (patch) | |
tree | ece0388277cda5b90721b86a3ff2335a0ecd2814 /scripts | |
parent | 445446c859bf5f4b6f4487b1e97c5d5d7ccd3464 (diff) | |
download | vyatta-cfg-quagga-54c832060d5955111fc6299d8eca0f4d1bacbaec.tar.gz vyatta-cfg-quagga-54c832060d5955111fc6299d8eca0f4d1bacbaec.zip |
Mark the Vyatta specific section of inittab
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/system/vyatta_update_console.pl | 4 |
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"); |