Author: gs Date: Tue Oct 4 13:27:33 2011 New Revision: 66229 URL: http://svn.opensuse.org/viewcvs/yast?rev=66229&view=rev Log: set create_ifcfg to false if file already exists Modified: branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp Modified: branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp?rev=66229&r1=66228&r2=66229&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/complex.ycp Tue Oct 4 13:27:33 2011 @@ -316,8 +316,8 @@ // create and start FCoE command = sformat( "fipvlan -c -s %1", dev_name ); - // if /etc/sysconfig/network/ifcfg-<vlan-interface> already exists - // call 'ifup' for the interface (creates /proc/net/vlan/<vlan-interface>) + // if /etc/sysconfig/network/ifcfg-<if>.<vlan> already exists + // call 'ifup' for the interface (creates /proc/net/vlan/<if>.<vlan>) if ( FileUtils::Exists( FcoeClient::ifcfg_file ) ) { string cmd_ifup = sformat( "ifup %1\.%2", dev_name, card["vlan_interface"]:"" ); @@ -325,6 +325,8 @@ output = (map)SCR::Execute( .target.bash_output, cmd_ifup ); y2milestone( "Output: %1", output ); + create_ifcfg = false; // /etc/sysconfig/network/ifcfg-file already exists + if ( output["exit"]:255 == 0 ) { // only start FCoE -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org