[yast-commit] r59245 - in /trunk/network: VERSION package/yast2-network.changes src/lan/hardware.ycp
Author: mzugec Date: Thu Oct 29 17:48:16 2009 New Revision: 59245 URL: http://svn.opensuse.org/viewcvs/yast?rev=59245&view=rev Log: physical identification for NIC cards (FaTE#307164) Modified: trunk/network/VERSION trunk/network/package/yast2-network.changes trunk/network/src/lan/hardware.ycp Modified: trunk/network/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/VERSION?rev=59245&r1=5924... ============================================================================== --- trunk/network/VERSION (original) +++ trunk/network/VERSION Thu Oct 29 17:48:16 2009 @@ -1 +1 @@ -2.18.52 +2.18.53 Modified: trunk/network/package/yast2-network.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/package/yast2-network.cha... ============================================================================== --- trunk/network/package/yast2-network.changes (original) +++ trunk/network/package/yast2-network.changes Thu Oct 29 17:48:16 2009 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Oct 29 17:47:14 CET 2009 - mzugec@suse.cz + +- physical identification for NIC cards (FaTE#307164) +- 2.18.53 + +------------------------------------------------------------------- Mon Oct 26 16:00:33 CET 2009 - mzugec@suse.cz - show BusID in lan description (FaTE#307165) Modified: trunk/network/src/lan/hardware.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/src/lan/hardware.ycp?rev=... ============================================================================== --- trunk/network/src/lan/hardware.ycp (original) +++ trunk/network/src/lan/hardware.ycp Thu Oct 29 17:48:16 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 @@ -202,9 +206,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() @@ -430,10 +441,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 ()) ) ) @@ -471,6 +482,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