Author: jsuchome Date: Thu May 6 15:44:32 2010 New Revision: 61965 URL: http://svn.opensuse.org/viewcvs/yast?rev=61965&view=rev Log: - Console.ycp: find out if the baud rate was not given (bnc#602743) - 2.19.14 Modified: trunk/country/VERSION trunk/country/console/src/Console.ycp trunk/country/package/yast2-country.changes Modified: trunk/country/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/country/VERSION?rev=61965&r1=61964&r2=61965&view=diff ============================================================================== --- trunk/country/VERSION (original) +++ trunk/country/VERSION Thu May 6 15:44:32 2010 @@ -1 +1 @@ -2.19.13 +2.19.14 Modified: trunk/country/console/src/Console.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/country/console/src/Console.ycp?rev=61965&r1=61964&r2=61965&view=diff ============================================================================== --- trunk/country/console/src/Console.ycp (original) +++ trunk/country/console/src/Console.ycp Thu May 6 15:44:32 2010 @@ -30,6 +30,7 @@ { module "Console"; + import "Kernel"; import "Mode"; import "Language"; import "Linuxrc"; @@ -137,7 +138,17 @@ * upgrade: disable old entries for serial console */ SCR::Execute (.target.bash,"sed -i '/^\\(hvc\\|hvsi\\|S[0-9]\\)/s@^.*@#&@' /etc/inittab"); - SCR::Execute (.target.bash,"grep -E '^cons:' /etc/inittab || /bin/echo 'cons:12345:respawn:/sbin/smart_agetty -L 42 console' >> /etc/inittab"); + + // find out if the baud rate is not present on command line (bnc#602743) + string rate = "42"; + foreach (string part, splitstring (Kernel::GetCmdLine (), "\t "), { + if (substring (part, 0, 8) == "console=" && issubstring (part, ",")) + { + rate = splitstring (part, ",")[1]:rate; + } + }); + + SCR::Execute (.target.bash, sformat ("grep -E '^cons:' /etc/inittab || /bin/echo 'cons:12345:respawn:/sbin/smart_agetty -L %1 console' >> /etc/inittab", rate)); SCR::Execute (.target.bash,"grep -Ew ^console /etc/securetty || /bin/echo console >> /etc/securetty"); } } Modified: trunk/country/package/yast2-country.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/country/package/yast2-country.changes?rev=61965&r1=61964&r2=61965&view=diff ============================================================================== --- trunk/country/package/yast2-country.changes (original) +++ trunk/country/package/yast2-country.changes Thu May 6 15:44:32 2010 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu May 6 12:51:05 CEST 2010 - jsuchome@suse.cz + +- Console.ycp: find out if the baud rate was not given (bnc#602743) +- 2.19.14 + +------------------------------------------------------------------- Wed Apr 21 13:30:37 UTC 2010 - coolo@novell.com - Buildrequire PolicyKit-devel to fix build -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org