Author: mzugec Date: Tue Nov 3 15:45:16 2009 New Revision: 59282 URL: http://svn.opensuse.org/viewcvs/yast?rev=59282&view=rev Log: support for ETHTOOL_OPTIONS (FaTE#305352) 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=59282&r1=59281&r2=59282&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/network/VERSION (original) +++ branches/SuSE-Code-11-SP1-Branch/network/VERSION Tue Nov 3 15:45:16 2009 @@ -1 +1 @@ -2.17.104 +2.17.105 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=59282&r1=59281&r2=59282&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 Tue Nov 3 15:45:16 2009 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Nov 3 15:44:37 CET 2009 - mzugec@suse.cz + +- support for ETHTOOL_OPTIONS (FaTE#305352) +- 2.17.105 + +------------------------------------------------------------------- Thu Oct 29 17:52:48 CET 2009 - mzugec@suse.cz - physical identification for NIC cards (FaTE#307164) 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=59282&r1=59281&r2=59282&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 Tue Nov 3 15:45:16 2009 @@ -51,6 +51,9 @@ _("<p>Additionally, you may specify <b>Options</b> for the Kernel module. Use this format: <i>option</i>=<i>value</i>. Each entry should be space separated,for example: <i>io=0x300 irq=5</i>. <b>Note:</b> If two cards are configured with the same module name, options will be merged while saving.</p> +") + + +_("<p>If you write something into <b>Ethtool options</b>, ifup will call ethtool with this options.</p> "); if(!(LanItems::operation == `edit /* FIXME: unique || Lan::unique != "" */ || Arch::s390 () == true)) @@ -127,6 +130,7 @@ hardware["no_hotplug"] = hardware["hotplug"]:"" == ""; hardware["no_hotplug_dummy"] = hardware["no_hotplug"]:false && hardware["type"]:"" != "dummy"; + hardware["ethtool_options"] = LanItems::ethtool_options; } @@ -221,11 +225,20 @@ ) ); + term EthtoolWidget = + `Frame(_("Ethtool options"), + `HBox( + `InputField(`id(`ethtool_opts), `opt(`hstretch), _("Options"), hardware["ethtool_options"]:"") + ) + + ); + term contents = `VBox( `HBox(UdevWidget,`HStretch(), BlinkCard), TypeNameWidgets, KernelBox, + EthtoolWidget, `VStretch() ); @@ -529,6 +542,7 @@ string driver = (string) UI::QueryWidget(`modul, `Value); LanItems::setDriver(driver); LanItems::driver_options[driver] = (string) UI::QueryWidget(`options, `Value); + LanItems::ethtool_options = (string) UI::QueryWidget(`ethtool_opts, `Value); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org