Author: gs Date: Thu Jun 16 11:45:02 2011 New Revision: 64390 URL: http://svn.opensuse.org/viewcvs/yast?rev=64390&view=rev Log: stop services on Abort Modified: trunk/fcoe-client/src/complex.ycp Modified: trunk/fcoe-client/src/complex.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/fcoe-client/src/complex.ycp?rev=64390&r1=64389&r2=64390&view=diff ============================================================================== --- trunk/fcoe-client/src/complex.ycp (original) +++ trunk/fcoe-client/src/complex.ycp Thu Jun 16 11:45:02 2011 @@ -45,13 +45,23 @@ /** * Show a popup on abort if data are modified and - * check redo list/execute redo commands. + * check list of commands to revert changes done to the system. * This function is also called during installation if user aborts - * the 'FCoE client configuration', i.e. commands from redo list + * the 'FCoE client configuration', i.e. commands from revert list * are executed and list is reset. * @return true if users aborts installation */ boolean ReallyAbort() { + // revert start of 'fcoe' or 'lldpad' + if ( FcoeClient::fcoe_started ) + { + Service::Stop( "fcoe" ); + } + if ( FcoeClient::lldpad_started ) + { + Service::Stop( "lldpad" ); + } + if ( !FcoeClient::Modified() ) return true; @@ -110,7 +120,7 @@ **/ void InitServicesDialog (string id) { y2milestone( "Init services dialog" ); - + y2milestone( "Modified: %1", FcoeClient::Modified() ); map status_map = FcoeClient::GetStartStatus(); if ( status_map["fcoe"]:false == true ) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org