Ryan McCain wrote:
I've searched the archives of the mailing list but havent found a definitive answer to this question. How can I issue this command during system boot:
ethtool -s eth1 autoneg off duplex full
.. I tried putting it in /etc/boot.local, but apparently boot.local runs before the network settings are touched.
OS: SLES 8 kernel: 2.4.x
From 9.0 Pro's /sbin/ifup: ###################################################################### # call optional and individual scripts # if [ "$SCRIPTNAME" = ifup \ -a \( "$BOOTPROTO" != dhcp -o "$DHCP" = yes \) ] ; then # execute global start scripts if [ "$GLOBAL_POST_UP_EXEC" = "yes" ]; then for SCRIPT in if-up.d/*; do [ -d $SCRIPT -o ! -x $SCRIPT ] && continue; # ignore backup files and leftovers from rpm echo $SCRIPT | grep -q '\(\.rpm\(save\|new\)$\)\|\(.~$\)' && continue; debug "executing additional global start script $SCRIPT" $SCRIPT $CONFIG $INTERFACE${IF_ALIAS:+:$IF_ALIAS} \ ${OPTIONS:+-o $OPTIONS} done fi # execute an individual poststart script if available # NOTE: 'eval echo' in the next line is necessary to expand settings # like POST_UP_SCRIPT="~root/bin/foo" for SCRIPT in `eval echo $POST_UP_SCRIPT scripts/$POST_UP_SCRIPT`; do if [ -x "$SCRIPT" -a ! -d "$SCRIPT" ] ; then debug "executing additional start script $SCRIPT" $SCRIPT $CONFIG $INTERFACE${IF_ALIAS:+:$IF_ALIAS} \ ${OPTIONS:+-o $OPTIONS} fi done fi When this runs, the current directory is /etc/sysconfig/network. Your script should contain a virtually identical section. Maybe the directory tree is a bit different, but that should be all. If necessary, change the option GLOBAL_POST_UP in /etc/sysconfig/network/config to "yes" (with the quotes).