[yast-commit] r47975 - in /trunk/network: VERSION package/yast2-network.changes src/modules/NetHwDetection.ycp
Author: mzugec Date: Mon Jun 2 09:37:25 2008 New Revision: 47975 URL: http://svn.opensuse.org/viewcvs/yast?rev=47975&view=rev Log: set link status up for all interfaces during installation (bnc#395014) Modified: trunk/network/VERSION trunk/network/package/yast2-network.changes trunk/network/src/modules/NetHwDetection.ycp Modified: trunk/network/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/VERSION?rev=47975&r1=47974&r2=47975&view=diff ============================================================================== --- trunk/network/VERSION (original) +++ trunk/network/VERSION Mon Jun 2 09:37:25 2008 @@ -1 +1 @@ -2.16.46 +2.16.47 Modified: trunk/network/package/yast2-network.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/package/yast2-network.changes?rev=47975&r1=47974&r2=47975&view=diff ============================================================================== --- trunk/network/package/yast2-network.changes (original) +++ trunk/network/package/yast2-network.changes Mon Jun 2 09:37:25 2008 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Mon Jun 2 09:21:09 CEST 2008 - mzugec@suse.cz + +- set link status up for all interfaces during installation + (bnc#395014) +- 2.16.47 + +------------------------------------------------------------------- Mon May 26 13:47:40 CEST 2008 - kmachalkova@suse.cz - Use Product::ReadProduct() to obtain release notes URL, thus make Modified: trunk/network/src/modules/NetHwDetection.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/src/modules/NetHwDetection.ycp?rev=47975&r1=47974&r2=47975&view=diff ============================================================================== --- trunk/network/src/modules/NetHwDetection.ycp (original) +++ trunk/network/src/modules/NetHwDetection.ycp Mon Jun 2 09:37:25 2008 @@ -118,6 +118,7 @@ /* Setup the interface */ +/* detection_interface=false; if(SCR::Execute(.target.bash, sformat("/sbin/ifconfig %1 2>&1 | grep 'inet6\\? addr'", device), $["LC_ALL":"C"]) != 0) { y2milestone("Setting up interface %1 ...", device); @@ -125,6 +126,18 @@ detection_interface=true; } y2debug("detection_interface=%1", detection_interface); +*/ + string command = "ls /sys/class/net|grep -v \"^lo$\""; + map<string, any> output = (map<string, any>)SCR::Execute(.target.bash_output, command); + if (output["exit"]:-1==0){ + 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)); + if (ifc == device) detection_interface=true; + }); + } else y2error("Error while execute %1 : %2", command, output); y2milestone("Network detection prepare (end)"); return true; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mzugec@svn.opensuse.org