• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Guruplug - reduce ethernet eth0 speed permanently  (Read 2911 times)
gsk99
Newbie
*

Karma: 1
Posts: 10


View Profile
« on: September 27, 2010, 07:42:30 PM »

Right now my GuruPlug autonegotiates the wired connection to 1000FD.  I'd like to set it to 100FD.  How do I make that change permanent?  I have ethtool and mii-tool at my disposal.  I've seen a few different ways to do this but I can't seen to get any to work.
Logged

TitanFan
Newbie
*

Karma: 0
Posts: 27


View Profile
« Reply #1 on: September 29, 2010, 11:00:17 PM »

I put the following line at the end of /etc/rc.local:

ethtool -s eth0 speed 100 duplex full autoneg on

Works great.
Logged

bdewacht
Newbie
*

Karma: 0
Posts: 10


View Profile
« Reply #2 on: October 15, 2010, 06:00:21 PM »

I put the following line at the end of /etc/rc.local:

ethtool -s eth0 speed 100 duplex full autoneg on

This will only work if you log in I think. Why not simply create /etc/rc2.d/S00SetupSpeed and put the same line in there ?

Logged

two9er
Jr. Member
**

Karma: 10
Posts: 51


View Profile
« Reply #3 on: October 22, 2010, 09:00:14 AM »

Quote
This will only work if you log in I think. Why not simply create /etc/rc2.d/S00SetupSpeed and put the same line in there ?

/etc/rc.local is executed in runlevels 2 thru 5 by /etc/rc*.d/s99rc.local, which is a link to /etc/init.d/rc.local

Your method would break the intent of /etc/rc*.d, and would likely be overwritten upon upgrading.

From /etc/rc*.d/README:

Code:
sheevaplug-debian:cat /etc/rc2.d/README
The scripts in this directory are executed each time the system enters
this runlevel.

The scripts are all symbolic links whose targets are located in
/etc/init.d/ .

To disable a service in this runlevel, rename its script in this directory
so that the new name begins with a 'K' and a two-digit number, where the
number is the difference between the two-digit number following the 'S'
in its current name, and 100.  To re-enable the service, rename the script
back to its original name beginning with 'S'.

For a more information see /etc/init.d/README.

HTH, Jim
Logged

Just plugging away! GuruPlug Server Plus, 1TB esata hd, 8GB microSD (rfs)

Pages: [1]
Print
Jump to: