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/net.xxx restart
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
I am facing the same bug (ethtool.sh involved?) in addition: ethtool set-ring option unsupported
Created attachment 275759 [details, diff] /lib/rc/net/ethtool.sh patch quick and dirty patch of ethtool.sh
Patch (although quick and dirty) seems to fix the problem. By the way, in openrc-0.8.3-r1 the problem still exists!
This patch is not a unified diff, so I can't apply it with "git apply" or "patch". Thanks, William
Created attachment 282109 [details, diff] /lib/rc/net/ethtool.sh patch (unified diff format) /lib/rc/net/ethtool.sh patch (unified diff format)
Alois, yes, i confirm, 0.8.3-r1 is also affected by the same bugs please see attachement of my previous comment
Gilles' patch fixed the ethtool parameters quoting issue that was causing it to fail on my system.
This has been fixed in openrc-9999 through commit 0e4d169. Thank you guys! To apply this patch do: # wget 'http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=patch;h=0e4d169a40e01d74cf5ff399afe049a25543f0f6' -O /tmp/ethtool.patch # cd /lib/rc/net/ # patch -p2 < /tmp/ethtool.patch