Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368525 - sys-apps/openrc-0.8.2-r1: ethtool interface not working
Summary: sys-apps/openrc-0.8.2-r1: ethtool interface not working
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: OpenRC Team
Whiteboard: openrc:oldnet
Keywords: InVCS
Depends on:
Blocks: 382299
  Show dependency tree
Reported: 2011-05-24 06:57 UTC by Alois Schmid
Modified: 2013-04-25 23:08 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---

output of /etc/init.d/net.internet -d restart >& debug_output_interface_internet (debug_output_interface_internet,169.64 KB, text/plain)
2011-05-24 07:01 UTC, Alois Schmid
/lib/rc/net/ patch (,646 bytes, patch)
2011-06-04 00:32 UTC, Gilles OLIVIER
Details | Diff
/lib/rc/net/ patch (unified diff format) (,550 bytes, patch)
2011-08-04 20:30 UTC, Gilles OLIVIER
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alois Schmid 2011-05-24 06:57:35 UTC
I'm trying to put ethtool_change_internet="autoneg off speed 100 duplex full" in /etc/conf.d/net after my upgrade to openrc-0.8.2-r1. But it doesn't work. Instead I am getting the output of ethtool when invoked without any parameters and it seems ("/etc/init.d/net.internet -v restart" output) that the script tries to run 

/usr/sbin/ethtool '--change internet autoneg off speed 100 duplex full'

Running the command with the quotes gives me the same error output on the command line, while running the command without quotes works.

Reproducible: Always

Steps to Reproduce:
1. set some ethtool variable in /etc/conf.d/net
2. restart network interface with /etc/init.d/ restart
Comment 1 Alois Schmid 2011-05-24 07:01:07 UTC
Created attachment 274457 [details]
output of /etc/init.d/net.internet -d restart >& debug_output_interface_internet

Added output of
/etc/init.d/net.internet -d restart
Comment 2 Gilles OLIVIER 2011-06-03 08:53:56 UTC
I am facing the same bug ( involved?)

 in addition:

  ethtool set-ring option unsupported
Comment 3 Gilles OLIVIER 2011-06-04 00:32:37 UTC
Created attachment 275759 [details, diff]
/lib/rc/net/ patch

quick and dirty patch of
Comment 4 Alois Schmid 2011-08-04 08:43:28 UTC
Patch (although quick and dirty) seems to fix the problem.

By the way, in openrc-0.8.3-r1 the problem still exists!
Comment 5 William Hubbs gentoo-dev 2011-08-04 13:27:24 UTC
This patch is not a unified diff, so I can't apply it with "git apply"
or "patch".


Comment 6 Gilles OLIVIER 2011-08-04 20:30:29 UTC
Created attachment 282109 [details, diff]
/lib/rc/net/ patch (unified diff format)

/lib/rc/net/ patch (unified diff format)
Comment 7 Gilles OLIVIER 2011-08-04 20:32:13 UTC
Alois, yes, i confirm, 0.8.3-r1 is also affected by the same bugs

please see attachement of my previous comment
Comment 8 Aidan Marks 2011-08-31 23:00:19 UTC
Gilles' patch fixed the ethtool parameters quoting issue that was causing it to fail on my system.
Comment 9 Christian Ruppert (idl0r) gentoo-dev 2011-09-18 12:49:53 UTC
This has been fixed in openrc-9999 through commit 0e4d169.

Thank you guys!

To apply this patch do:
# wget ';a=patch;h=0e4d169a40e01d74cf5ff399afe049a25543f0f6' -O /tmp/ethtool.patch
# cd /lib/rc/net/
# patch -p2 < /tmp/ethtool.patch