[yast-commit] r59248 - in /branches/SuSE-Code-11-SP1-Branch/network: VERSION package/yast2-network.changes src/lan/hardware.ycp
Author: mzugec Date: Thu Oct 29 17:53:15 2009 New Revision: 59248 URL: http://svn.opensuse.org/viewcvs/yast?rev=59248&view=rev Log: physical identification for NIC cards (FaTE#307164) 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/lan/hardware.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=59248&r1=59247&r2=59248&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/network/VERSION (original) +++ branches/SuSE-Code-11-SP1-Branch/network/VERSION Thu Oct 29 17:53:15 2009 @@ -1 +1 @@ -2.17.103 +2.17.104 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=59248&r1=59247&r2=59248&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 Thu Oct 29 17:53:15 2009 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Oct 29 17:52:48 CET 2009 - mzugec@suse.cz + +- physical identification for NIC cards (FaTE#307164) +- 2.17.104 + +------------------------------------------------------------------- Mon Oct 26 16:10:40 CET 2009 - mzugec@suse.cz - show BusID in lan description (FaTE#307165) Modified: branches/SuSE-Code-11-SP1-Branch/network/src/lan/hardware.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/network/src/lan/hardware.ycp?rev=59248&r1=59247&r2=59248&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/network/src/lan/hardware.ycp (original) +++ branches/SuSE-Code-11-SP1-Branch/network/src/lan/hardware.ycp Thu Oct 29 17:53:15 2009 @@ -37,6 +37,10 @@ eth1, wlan0 ) and assures a persistent device name upon reboot. ") + +_("<p><b>Show visible port identification</b> allows you to physically identify now configured NIC. +Set appropriate time, click <b>Blink</b> and LED diods on you NIC will start blinking for selected time. +</p>")+ + /* Manual network card setup help 2/4 */ _("<p><b>Kernel Module</b>. Enter the kernel module (driver) name for your network device here. If the device is already configured, see if there is more than one driver available for @@ -210,9 +214,16 @@ if(LanItems::operation == `edit ) TypeNameWidgets = `Empty(); else UdevWidget = `Empty(); + term BlinkCard = `Frame(_("Show visible port identification"), + `HBox( + `IntField(`id(`blink_time), "Seconds:", 0, 100, 5), + `PushButton(`id(`blink), _("Blink")) + ) + ); + term contents = `VBox( - `HBox(UdevWidget,`HStretch()), + `HBox(UdevWidget,`HStretch(), BlinkCard), TypeNameWidgets, KernelBox, `VStretch() @@ -438,10 +449,10 @@ `CheckBox(`id(`change_dev_name), `opt(`notify), _("Change DeviceName"), false), `InputField(`id(`dev_name), "", LanItems::GetItemUdev("NAME")) ) - ), + ), `VSpacing(0.5), `HBox( `PushButton (`id(`ok), `opt(`default), Label::OKButton ()), - `PushButton (`id(`cancel), Label::CancelButton ()) + `PushButton (`id(`cancel), Label::CancelButton ()) ) ) @@ -479,6 +490,13 @@ UI::CloseDialog(); UI::ChangeWidget(`device_name, `Value, LanItems::Items[LanItems::current, "ifcfg"]:""); } + if (ret==`blink){ + string device = LanItems::device; + integer timeout = tointeger(UI::QueryWidget(`blink_time, `Value)); + y2milestone("blink, blink ... %1 seconds on %2 device", timeout, device); + string cmd = sformat("ethtool -p %1 %2", device, timeout); + y2milestone("%1 : %2", cmd, SCR::Execute(.target.bash_output, cmd)); + } return nil; } -- 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