10-20-2011
Ethtool script not running on boot.
Hi, there is an incompatibility between my NIC and my Western Digital Powerline adapters which appears to cause autonegotiation to fail intermittently, most often following a reboot. Running the following Ethtool script will establish a connection immediately:
#!/bin/sh
# chkconfig: 345 85 15
ETHTOOL="/usr/sbin/ethtool"
DEV="eth0"
SPEED="100 duplex full"
case "$1" in
start)
echo -n "Setting eth0 speed 100 duplex full...";
$ETHTOOL -s $DEV speed $SPEED;
echo " done.";;
stop)
;;
esac
exit 0
I have tried placing this script in /etc/init.d, and it is shown as a selected option when running ntsysv but to no avail.
The recommended method for Fedora is to add ETHTOOL_OPTS="speed 100 duplex full autoneg off" to /etc/sysconfig/network-scripts/ifcfg-NameOfConnection which again is not working.
I'm running Fedora 15 64-bit, NIC = Intel 82562V-2 10/100.
If anyone is able to help out then they would probably save my hair from being wrenched out. Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there! I tried to search for something like this here but couldn't find anything. I need to run a specific program when linux starts up. I need to run it after the rp-pppoe has started because this prog needs internet connection.
I start the program by entering ./dynix start (its in my home... (4 Replies)
Discussion started by: D-Lexy
4 Replies
2. Filesystems, Disks and Memory
How can I compile a code that can be runned on boot:?? (2 Replies)
Discussion started by: d4n1l0d
2 Replies
3. Ubuntu
I have two systems in my computer . I update the ubuntu system these days and always interrupt it and exit the system . now the system cannot boot after Running local boot scripts(/etc/rc.local), it just stops there. i have to terminate the gnome display manager. what can i do with it ? thank... (0 Replies)
Discussion started by: tcb3210
0 Replies
4. Solaris
Hi,
i have a script which need to do behave differently when run as a startup process from init.d/ rc2.d script and when run manually from shell.
How do i distinguish whether my script is run by init process or by shell??
Will the command
/proc/$$/psinfo | grep "myscript" work well???... (2 Replies)
Discussion started by: vickylife
2 Replies
5. Shell Programming and Scripting
Hi,
I am uising Suse linux on my system and i tried :
man ethtool and i got the manual for ethtool but when i tried to use the command as:
ethtool -a eth0
it says Command not found.
also, i tried rpm -qa|grep ethtool i got:
ethtool-3-15.2 so,it means my system has ethtool server or... (4 Replies)
Discussion started by: salil2012
4 Replies
6. Programming
Hi,
I'm using ethtool to change network settings:
Just for the experiment, i want to change speed to 10, instead of 100,
I type:
ethtool -s eth0 speed 10 duplex full autoneg off
and to view settings i type:
ethtool eth0, and get this:
Settings for eth0:
Supported ports:
... (4 Replies)
Discussion started by: alex889
4 Replies
7. UNIX for Dummies Questions & Answers
dears
am having solaris 10, and i would like to know if the NTP service is running when the OS staritng?on the other hand how can i make it start at the boot up?note the ntp is managed by the SMF in solaris 10.
thanks a lot (2 Replies)
Discussion started by: thehero
2 Replies
8. Shell Programming and Scripting
I am using blow script :--
#!/bin/bash
FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not
if
then
# echo "process found"
exit 0;
else
echo "process not found"
exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
Discussion started by: ketanraut
1 Replies
9. Red Hat
Dear community, as already done tons of times, I prepare the RedHat installation on VMWare, then clone it with clonezilla, and finally restore it on final server. Due to different hrdware, I have to boot from rhel-server-7.4-x86_64-boot.iso cd and rewrite the initramfs that contains the hardware... (3 Replies)
Discussion started by: Lord Spectre
3 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
I am trying to find my NIC card speed in centos 5. But i am unable to get the info using ethtool command.
# ethtool eth0
Settings for eth0:
Link detected: yes
and even tried to look for the file # cd /sys/class/net/eth0/speed files which is also not available.... (8 Replies)
Discussion started by: sravani25
8 Replies
LEARN ABOUT CENTOS
grub-reboot
GRUB-REBOOT(8) System Administration Utilities GRUB-REBOOT(8)
NAME
grub-reboot - set the default boot entry for GRUB, for the next boot only
SYNOPSIS
grub-reboot [OPTION] MENU_ENTRY
DESCRIPTION
Set the default boot menu entry for GRUB, for the next boot only.
-h, --help
print this message and exit
-V, --version
print the version information and exit
--boot-directory=DIR
expect GRUB images under the directory DIR/grub instead of the /boot/grub directory
MENU_ENTRY is a number, a menu item title or a menu item identifier. Please note that menu items in submenus or sub-submenus require speci-
fying the submenu components and then the menu item component. The titles should be separated using the greater-than character (>) with no
extra spaces. Depending on your shell some characters including > may need escaping. More information about this is available in the GRUB
Manual in the section about the 'default' command.
REPORTING BUGS
Report bugs to <bug-grub@gnu.org>.
SEE ALSO
grub-set-default(8), grub-editenv(1)
The full documentation for grub-reboot is maintained as a Texinfo manual. If the info and grub-reboot programs are properly installed at
your site, the command
info grub-reboot
should give you access to the complete manual.
grub-reboot (GRUB) 2.02-2ubuntu8.3 July 2018 GRUB-REBOOT(8)