diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-12-10 14:23:25 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-12-10 14:38:35 -0800 |
commit | d7e8ff4eb756dc5812d4fb236c25f9bdc1fd17d7 (patch) | |
tree | 7d1a265c1eb773cebf9be6f9f967a03bc70002dc /scripts/system | |
parent | 99ecc9f4722c4aff2749255eeaec54e9eb5b5787 (diff) | |
download | vyatta-cfg-system-d7e8ff4eb756dc5812d4fb236c25f9bdc1fd17d7.tar.gz vyatta-cfg-system-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
Diffstat (limited to 'scripts/system')
-rwxr-xr-x | 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 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} $_; } |