[yast-commit] r56061 - in /branches/tmp/juhliarik/bootloader-UIrefactor/src: modules/BootCommon.ycp routines/common_options.ycp routines/misc.ycp
Author: juhliarik
Date: Tue Mar 10 17:06:13 2009
New Revision: 56061
URL: http://svn.opensuse.org/viewcvs/yast?rev=56061&view=rev
Log:
updated handling of serial console
Modified:
branches/tmp/juhliarik/bootloader-UIrefactor/src/modules/BootCommon.ycp
branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/common_options.ycp
branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/misc.ycp
Modified: branches/tmp/juhliarik/bootloader-UIrefactor/src/modules/BootCommon.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/juhliarik/bootloader-UIrefactor/src/modules/BootCommon.ycp?rev=56061&r1=56060&r2=56061&view=diff
==============================================================================
--- branches/tmp/juhliarik/bootloader-UIrefactor/src/modules/BootCommon.ycp (original)
+++ branches/tmp/juhliarik/bootloader-UIrefactor/src/modules/BootCommon.ycp Tue Mar 10 17:06:13 2009
@@ -924,10 +924,6 @@
if (bl == "none")
return true;
- // FATE: #110038: Serial console
- // check and add console key with value for sections
- addConsole();
-
// FIXME: give mountby information to perl-Bootloader (or define some
// better interface), so that perl-Bootloader can use mountby device names
// for these devices instead. Tracked in bug #248162.
Modified: branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/common_options.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/common_options.ycp?rev=56061&r1=56060&r2=56061&view=diff
==============================================================================
--- branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/common_options.ycp (original)
+++ branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/common_options.ycp Tue Mar 10 17:06:13 2009
@@ -72,12 +72,27 @@
void InitConsole( string widget){
boolean enable = BootCommon::globals["terminal"]:"" == "serial";
UI::ChangeWidget(`id(`console_frame),`Value, enable);
- string args = BootCommon::globals["console"]:"";
+ string args = BootCommon::globals["serial"]:"";
UI::ChangeWidget(`id(`console_args),`Value, args);
}
void StoreConsole(string widget, map event){
- //TODO
+ boolean use_serial = (boolean) UI::QueryWidget(`id(`console_frame),`Value);
+ if (use_serial)
+ {
+ BootCommon::globals["terminal"] = "serial";
+ string console_value = (string) UI::QueryWidget(`id(`console_args),`Value);
+ if (console_value != "")
+ BootCommon::globals["serial"] = console_value;
+ } else {
+ if (haskey(BootCommon::globals, "terminal"))
+ BootCommon::globals = remove(BootCommon::globals, "terminal");
+ if (haskey(BootCommon::globals, "serial"))
+ BootCommon::globals = remove(BootCommon::globals, "serial");
+ }
+ // FATE: #110038: Serial console
+ // add or remove console key with value for sections
+ BootCommon::HandleConsole();
}
symbol HandleConsole(string widget, map event){
Modified: branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/misc.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/misc.ycp?rev=56061&r1=56060&r2=56061&view=diff
==============================================================================
--- branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/misc.ycp (original)
+++ branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/misc.ycp Tue Mar 10 17:06:13 2009
@@ -2602,44 +2602,42 @@
* - add key console with value to section type image and xen
*/
-define void addConsole()
+global define void HandleConsole()
{
string console_value = getConsoleValue();
- if ((console_value != "") && (console_value != nil))
- {
- // list of idexes from sections where is image or xen
- list < integer > list_index =[];
- // counter
- integer index = -1;
- foreach(map
participants (1)
-
juhliarik@svn.opensuse.org