Author: gs Date: Tue Apr 26 12:10:23 2011 New Revision: 63862 URL: http://svn.opensuse.org/viewcvs/yast?rev=63862&view=rev Log: read /etc/fcoe/config Modified: trunk/fcoe-client/agents/fcoe_config.scr trunk/fcoe-client/src/complex.ycp Modified: trunk/fcoe-client/agents/fcoe_config.scr URL: http://svn.opensuse.org/viewcvs/yast/trunk/fcoe-client/agents/fcoe_config.scr?rev=63862&r1=63861&r2=63862&view=diff ============================================================================== --- trunk/fcoe-client/agents/fcoe_config.scr (original) +++ trunk/fcoe-client/agents/fcoe_config.scr Tue Apr 26 12:10:23 2011 @@ -22,7 +22,7 @@ * Read/Sets the values defined in <tt>/etc/fcoe/config</tt> * in an easy manner. */ -.fcoe.config +.fcoe `ag_ini( `SysConfigFile("/etc/fcoe/config") Modified: trunk/fcoe-client/src/complex.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/fcoe-client/src/complex.ycp?rev=63862&r1=63861&r2=63862&view=diff ============================================================================== --- trunk/fcoe-client/src/complex.ycp (original) +++ trunk/fcoe-client/src/complex.ycp Tue Apr 26 12:10:23 2011 @@ -139,6 +139,24 @@ void InitConfigurationDialog (string id) { y2milestone( "Init configuration dialog" ); + + list <string> options = (list<string>) SCR::Dir(.fcoe); + y2milestone( "List of options: %1", options ); + + if ( options != [] ) + { + string debug_val = (string)SCR::Read(add(.fcoe, "DEBUG")); + string syslog_val = (string)SCR::Read(add(.fcoe, "SYSLOG")); + + if ( debug_val == "yes" ) + UI::ChangeWidget(`id("debug"), `Value, "yes" ); + else + UI::ChangeWidget(`id("debug"), `Value, "no" ); + } + else + { + y2error( "Cannot read /etc/fcoe/config"); + } } /** -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org