[yast-commit] r62851 - in /branches/SuSE-Code-11-SP1-Branch/network: VERSION package/yast2-network.changes src/modules/LanUdevAuto.ycp
Author: mzugec Date: Mon Nov 15 12:36:25 2010 New Revision: 62851 URL: http://svn.opensuse.org/viewcvs/yast?rev=62851&view=rev Log: correctly apply BusID based udev rules in AY (bnc#648270) Modified: branches/SuSE-Code-11-SP1-Branch/network/VERSION branches/SuSE-Code-11-SP1-Branch/network/package/yast2-network.changes branches/SuSE-Code-11-SP1-Branch/network/src/modules/LanUdevAuto.ycp Modified: branches/SuSE-Code-11-SP1-Branch/network/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/network/VERSION?rev=62851&r1=62850&r2=62851&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/network/VERSION (original) +++ branches/SuSE-Code-11-SP1-Branch/network/VERSION Mon Nov 15 12:36:25 2010 @@ -1 +1 @@ -2.17.144 +2.17.145 Modified: branches/SuSE-Code-11-SP1-Branch/network/package/yast2-network.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/network/package/yast2-network.changes?rev=62851&r1=62850&r2=62851&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/network/package/yast2-network.changes (original) +++ branches/SuSE-Code-11-SP1-Branch/network/package/yast2-network.changes Mon Nov 15 12:36:25 2010 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon Nov 15 12:31:45 CET 2010 - mzugec@suse.cz + +- correctly apply BusID based udev rules in AY (bnc#648270) +- 2.17.145 + +------------------------------------------------------------------- Mon Nov 8 16:40:34 CET 2010 - mzugec@suse.de - TP-L3: if possible, for temporary installation network use same Modified: branches/SuSE-Code-11-SP1-Branch/network/src/modules/LanUdevAuto.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/network/src/modules/LanUdevAuto.ycp?rev=62851&r1=62850&r2=62851&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/network/src/modules/LanUdevAuto.ycp (original) +++ branches/SuSE-Code-11-SP1-Branch/network/src/modules/LanUdevAuto.ycp Mon Nov 15 12:36:25 2010 @@ -237,7 +237,19 @@ y2milestone("MAC address matched with device:%1", rule["name"]:""); break; } - } + } else if (rule["rule"]:""=="KERNELS"){ + y2milestone("rule: %1", rule); + map cmd = (map)SCR::Execute(.target.bash_output, + sformat( "DEVICE=$(grep '%1' /sys/class/net/*/address);KERNELS=$(ls -l \"$(echo ${DEVICE%%/*})/device\");echo ${KERNELS##*/}|tr -d '\n'", mac)); + if (cmd["exit"]:-1==0){ + y2milestone("cmd output:%1", cmd["stdout"]:""); + if (cmd["stdout"]:""==rule["value"]:""){ + y2internal("match!"); + devname=rule["name"]:""; + } + } + } else + y2error("Unknown rule for:%1", rule); }); } else y2warning("No MAC address to compare."); return devname; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mzugec@svn2.opensuse.org