https://bugzilla.novell.com/show_bug.cgi?id=462816
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=462816#c3
Marius Tomaschewski changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #3 from Marius Tomaschewski 2009-01-08 03:22:40 MST ---
Please provide the failure message from /var/log/boot.msg or messages
and the out.txt output from
"ifdown eth0 ; bash -x ifup eth0 &>/tmp/out.txt"
and repoen when there is an error message.
When no message is logged in /var/log/boot.msg, please set DEBUG=EXTRA
in /etc/sysconfig/network/config and reboot. Provide all files from the
/dev/shm/sysconfig dir (tar cvzf /tmp/bnc462816.tgz /dev/shm/sysconfig).
For me, all is fine - it works in all documented variants:
/etc/sysconfig/network/ifcfg.template
## Type: string
## Default: ""
#
# If this variable is not empty ifup will call ethtool with this options.
# See the ethtool (8) manual page for available options.
# If the option string starts with a '-' (e.g. '-K iface rx on'), then the
# second word in the string will be replaced with the current interface name.
# Otherwise (e.g. 'autoneg off speed 10') ifup prepends '-s <interface>'.
#
ETHTOOL_OPTIONS=
Note, that when the ifcfg.template was modified in the past, it may not
contain the actual comment.
++ ETHTOOL_OPTIONS='autoneg off speed 10'
[...]
+ '[' ifup = ifup -a -n 'autoneg off speed 10' ']'
+ test -n ''
+ case "$ETHTOOL_OPTIONS" in
+ ETHTOOL_OPTIONS='-s eth1 autoneg off speed 10'
+ RETCODE=1
+ ETHTOOL=/sbin/ethtool
+ for tool in '$ETHTOOL' '/usr$ETHTOOL'
+ '[' -x /sbin/ethtool ']'
+ ETHTOOL=/sbin/ethtool
+ RETCODE=0
+ for tool in '$ETHTOOL' '/usr$ETHTOOL'
+ '[' -x /usr/sbin/ethtool ']'
+ continue
+ test 0 '!=' 0
++ /sbin/ethtool -s eth1 autoneg off speed 10
+ MESSAGE=
+ RETCODE=0
++ ETHTOOL_OPTIONS='-s iface autoneg off speed 10'
[...]
+ case "$ETHTOOL_OPTIONS" in
+ read ETHTOOL_SWITCH xifacex ETHTOOL_SETTINGS
++ echo -s iface autoneg off speed 10
+ ETHTOOL_OPTIONS='-s eth1 autoneg off speed 10'
+ RETCODE=1
+ ETHTOOL=/sbin/ethtool
+ for tool in '$ETHTOOL' '/usr$ETHTOOL'
+ '[' -x /sbin/ethtool ']'
+ ETHTOOL=/sbin/ethtool
+ RETCODE=0
+ for tool in '$ETHTOOL' '/usr$ETHTOOL'
+ '[' -x /usr/sbin/ethtool ']'
+ continue
+ test 0 '!=' 0
++ /sbin/ethtool -s eth1 autoneg off speed 10
+ MESSAGE=
+ RETCODE=0
++ ETHTOOL_OPTIONS='-s iface autoneg off speed 10 duplex full'
[...]
+ case "$ETHTOOL_OPTIONS" in
+ read ETHTOOL_SWITCH xifacex ETHTOOL_SETTINGS
++ echo -s iface autoneg off speed 10 duplex full
+ ETHTOOL_OPTIONS='-s eth1 autoneg off speed 10 duplex full'
+ RETCODE=1
+ ETHTOOL=/sbin/ethtool
+ for tool in '$ETHTOOL' '/usr$ETHTOOL'
+ '[' -x /sbin/ethtool ']'
+ ETHTOOL=/sbin/ethtool
+ RETCODE=0
+ for tool in '$ETHTOOL' '/usr$ETHTOOL'
+ '[' -x /usr/sbin/ethtool ']'
+ continue
+ test 0 '!=' 0
++ /sbin/ethtool -s eth1 autoneg off speed 10 duplex full
+ MESSAGE=
+ RETCODE=0
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.