public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Stop net.eth0 from starting?
@ 2007-08-02 13:47 Dan Cowsill
  2007-08-02 14:06 ` [gentoo-user] " Alexander Skwar
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dan Cowsill @ 2007-08-02 13:47 UTC (permalink / raw
  To: gentoo-user

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 775 bytes --]

I've got wifi configured with madwifi and use my wifi interface a lot
more than the ethernet I had thought that removing net.eth0 from
rc-update, but that didn't seem to work.  Every time I booted, the
interface tried to go up and get dhcp information.  I then read about
and used a preup function to check that interfaces are actually
connected before they are brought up, and this essentially solves the
problem.  It occurs to me that it would just be a whole lot easier and
cleaner if net.eth0 just didn't try to start at all, but I haven't
found any way to do this short of removing the init.d script from
rc-update.

My question is, is there any way to stop net.eth0 from starting
besides ethtool's preup function?

Thanks.

-- 
-·=»Ðŧħ«=·-
éí¢‹¬z¸\x1ežÚ(¢¸&j)bž	b²

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user]  Re: Stop net.eth0 from starting?
  2007-08-02 13:47 [gentoo-user] Stop net.eth0 from starting? Dan Cowsill
@ 2007-08-02 14:06 ` Alexander Skwar
  2007-08-02 14:53 ` [gentoo-user] " Neil Bothwick
  2007-08-04 13:40 ` Александър Л. Димитров
  2 siblings, 0 replies; 4+ messages in thread
From: Alexander Skwar @ 2007-08-02 14:06 UTC (permalink / raw
  To: gentoo-user

Dan Cowsill <danthehat@gmail.com> wrote:

> My question is, is there any way to stop net.eth0 from starting
> besides ethtool's preup function?

If you never want net.eth0 to start, you could of course simply
delete /etc/init.d/net.eth0.

Another way to make net.eth0 NOT start is to modify /etc/conf.d/rc:

,----[ /etc/conf.d/rc ]
| # Some people want a finer grain over hotplug/coldplug. RC_PLUG_SERVICES is a
| # list of services that are matched in order, either allowing or not. By
| # default we allow services through as RC_COLDPLUG/RC_HOTPLUG has to be yes
| # anyway.
| # Example - RC_PLUG_SERVICES="net.wlan !net.*"
| # This allows net.wlan and any service not matching net.* to be plugged.
| 
| RC_PLUG_SERVICES="!net.eth*"
`----

That's what I do at home as well. Works very fine.

Alexander Skwar

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Stop net.eth0 from starting?
  2007-08-02 13:47 [gentoo-user] Stop net.eth0 from starting? Dan Cowsill
  2007-08-02 14:06 ` [gentoo-user] " Alexander Skwar
@ 2007-08-02 14:53 ` Neil Bothwick
  2007-08-04 13:40 ` Александър Л. Димитров
  2 siblings, 0 replies; 4+ messages in thread
From: Neil Bothwick @ 2007-08-02 14:53 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 457 bytes --]

On Thu, 2 Aug 2007 08:47:32 -0500, Dan Cowsill wrote:

> My question is, is there any way to stop net.eth0 from starting
> besides ethtool's preup function?

Yes, emerge ifplugd. The net startup scripts will detect its presence,
and not try to bring the interface up unless it is connected by a cable.


-- 
Neil Bothwick

Code: (n.) a means of concealing bugs favored by programmers.
      (v.) the process of concealing bugs by programming.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Stop net.eth0 from starting?
  2007-08-02 13:47 [gentoo-user] Stop net.eth0 from starting? Dan Cowsill
  2007-08-02 14:06 ` [gentoo-user] " Alexander Skwar
  2007-08-02 14:53 ` [gentoo-user] " Neil Bothwick
@ 2007-08-04 13:40 ` Александър Л. Димитров
  2 siblings, 0 replies; 4+ messages in thread
From: Александър Л. Димитров @ 2007-08-04 13:40 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1027 bytes --]

On 08:47 Thu 02 Aug     , Dan Cowsill wrote:
> I've got wifi configured with madwifi and use my wifi interface a lot
> more than the ethernet I had thought that removing net.eth0 from
> rc-update, but that didn't seem to work.  Every time I booted, the
> interface tried to go up and get dhcp information.  I then read about
> and used a preup function to check that interfaces are actually
> connected before they are brought up, and this essentially solves the
> problem.  It occurs to me that it would just be a whole lot easier and
> cleaner if net.eth0 just didn't try to start at all, but I haven't
> found any way to do this short of removing the init.d script from
> rc-update.
> 
> My question is, is there any way to stop net.eth0 from starting
> besides ethtool's preup function?

There's yet another solution to this problem:

$ cat net
config_eth0=( null )

So just set the configuration for the interface to `null' so it doesn't
do atything when brought up at boot time.

Regards,
	Aleks

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-04 13:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-02 13:47 [gentoo-user] Stop net.eth0 from starting? Dan Cowsill
2007-08-02 14:06 ` [gentoo-user] " Alexander Skwar
2007-08-02 14:53 ` [gentoo-user] " Neil Bothwick
2007-08-04 13:40 ` Александър Л. Димитров

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox