summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-10 14:23:25 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-10 14:38:35 -0800
commitd7e8ff4eb756dc5812d4fb236c25f9bdc1fd17d7 (patch)
tree7d1a265c1eb773cebf9be6f9f967a03bc70002dc
parent99ecc9f4722c4aff2749255eeaec54e9eb5b5787 (diff)
downloadvyatta-cfg-quagga-d7e8ff4eb756dc5812d4fb236c25f9bdc1fd17d7.tar.gz
vyatta-cfg-quagga-d7e8ff4eb756dc5812d4fb236c25f9bdc1fd17d7.zip
Fix update of serial speed on all grub lines
Bug 6551 Need to handle case where console=ttyS0,9600 is at end of line
-rwxr-xr-xscripts/system/vyatta_update_console.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/system/vyatta_update_console.pl b/scripts/system/vyatta_update_console.pl
index 387a37b3..0ee6a6e5 100755
--- a/scripts/system/vyatta_update_console.pl
+++ b/scripts/system/vyatta_update_console.pl
@@ -113,8 +113,8 @@ sub update_grub {
while (<$grub>) {
if (/^serial / ) {
print {$tmp} "serial --unit=0 --speed=$speed\n";
- } elsif (/^(.* console=ttyS0),[0-9]+ (.*)$/) {
- print {$tmp} "$1,$speed $2\n";
+ } elsif (/^(.* console=ttyS0),[0-9]+(.*)$/) {
+ print {$tmp} "$1,$speed$2\n";
} else {
print {$tmp} $_;
}