diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-10-14 14:44:06 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-10-14 14:44:06 -0700 |
commit | cd5382ad4982731a7b7584173e9e4ee5108bc16e (patch) | |
tree | 81a29860ddb0a85f63be3bc55ee784120dc4be14 /scripts | |
parent | 9a09a382f874510f3427cf0a212b87fdb5b8e8d2 (diff) | |
download | vyatta-cfg-system-cd5382ad4982731a7b7584173e9e4ee5108bc16e.tar.gz vyatta-cfg-system-cd5382ad4982731a7b7584173e9e4ee5108bc16e.zip |
Fix serial console setup functions
Problems found during basic testing of new serial console config
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/system/vyatta_update_console.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/system/vyatta_update_console.pl b/scripts/system/vyatta_update_console.pl index 84cf7488..a6c08916 100644 --- a/scripts/system/vyatta_update_console.pl +++ b/scripts/system/vyatta_update_console.pl @@ -38,7 +38,7 @@ 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/ } <$inittab>; close $inittab; my $config = new Vyatta::Config; @@ -49,7 +49,7 @@ sub update_inittab { my $speed = $config->returnValue("$tty speed"); $speed = 9600 unless $speed; - print {$tmp} "T$id:23:respawn:/sbin/getty $speed $tty"; + print {$tmp} "T$id:23:respawn:/sbin/getty $speed $tty\n"; ++$id; } close $tmp; |