From d7e8ff4eb756dc5812d4fb236c25f9bdc1fd17d7 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 10 Dec 2010 14:23:25 -0800 Subject: Fix update of serial speed on all grub lines Bug 6551 Need to handle case where console=ttyS0,9600 is at end of line --- scripts/system/vyatta_update_console.pl | 4 ++-- 1 file 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} $_; } -- cgit v1.2.3