Author: mzugec Date: Wed Sep 3 15:31:11 2008 New Revision: 50620 URL: http://svn.opensuse.org/viewcvs/yast?rev=50620&view=rev Log: add commented block for future use Modified: trunk/network/src/modules/NetHwDetection.ycp Modified: trunk/network/src/modules/NetHwDetection.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/src/modules/NetHwDetection.ycp?rev=50620&r1=50619&r2=50620&view=diff ============================================================================== --- trunk/network/src/modules/NetHwDetection.ycp (original) +++ trunk/network/src/modules/NetHwDetection.ycp Wed Sep 3 15:31:11 2008 @@ -121,8 +121,12 @@ list<string> interfaces = filter(string s, splitstring(output["stdout"]:"", "\n"), {return (size(s)>0);}); y2internal("output %1", interfaces); foreach(string ifc, interfaces, { - y2milestone("Setting up interface %1", ifc); - SCR::Execute(.target.bash, sformat("ip link set %1 up", ifc)); +// TODO: do some tests before uncomment block bellow +// if ((integer)SCR::Execute(.target.bash, sformat("ip link show %1|head -n1|grep -q \"[^[:alpha:]]UP[^[:alpha:]]\"", ifc))!=0) +// { + y2milestone("Setting link up for interface %1", ifc); + SCR::Execute(.target.bash, sformat("ip link set %1 up", ifc)); +// } else y2milestone("Link for %1 interface is already up, do nothing", ifc); }); } else y2error("Error while execute %1 : %2", command, output); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org