Mailing List Archive

"net.eth0 has already been started" showed everytime
Hi,

I complied the driver (3com 920) into the kernel. However everytime I
boot my machine, it shows a WARNING message:

WARNING: * "net.eth0" has already been started.

Although the net adapter works well, I really want to get rid of this
message. I tried mm-sources and nitro-sources, all the same.

--
gentoo-user@gentoo.org mailing list
Re: "net.eth0 has already been started" showed everytime [ In reply to ]
On 10/22/2004 09:24 AM, Min Qiu wrote:
> Hi,
>
> I complied the driver (3com 920) into the kernel. However everytime I
> boot my machine, it shows a WARNING message:
>
> WARNING: * "net.eth0" has already been started.
>
> Although the net adapter works well, I really want to get rid of this
> message. I tried mm-sources and nitro-sources, all the same.
>
> --
> gentoo-user@gentoo.org mailing list
>
>

Hi,

do you use ifplugd or something similar? If so, you have to delete
net.eth0 from your default-runlevel because ifplugd will bring the
interface up when available.

Jochen

--
gentoo-user@gentoo.org mailing list
Re: "net.eth0 has already been started" showed everytime [ In reply to ]
Actually I didn't install anything like ifplugd. This is the rc-status result:

Runlevel: default
domainname [ started ]
local [ started ]
net.eth0 [ started ]
sshd [ started ]
syslog-ng [ started ]

--
gentoo-user@gentoo.org mailing list
Re: "net.eth0 has already been started" showed everytime [ In reply to ]
Check you don't have net.eth0 in boot runlevel too (ie. by rc-update show).

Jaroslav Sladek

--
gentoo-user@gentoo.org mailing list
Re: "net.eth0 has already been started" showed everytime [ In reply to ]
Min Qiu wrote:
> I complied the driver (3com 920) into the kernel. However everytime I
> boot my machine, it shows a WARNING message:
>
> WARNING: * "net.eth0" has already been started.
>
> Although the net adapter works well, I really want to get rid of this
> message. I tried mm-sources and nitro-sources, all the same.

I guess you are running udev and have hotplug in the boot runlevel.
hotplug starts network interfaces silently as it finds them.

I removed the executable bit on /etc/hotplug/net.agent, but that's
only a quick'n'dirty fix. Another option is the follwing patch:

--- net.agent.orig 2004-10-18 01:38:29.000000000 +0200
+++ net.agent 2004-10-18 02:00:43.000000000 +0200
@@ -25,6 +25,12 @@
exit 1
fi

+skip=`grep -o $INTERFACE net.skip`
+if [ -n "^$skip$$" ]; then
+ debug_mesg skipping $INTERFACE
+ exit 0
+fi
+
case $ACTION in
add|register)
# Red Hat specific hack...


Then you can put interface names into net.skip, and they will not
be started automatically by hotplug. Still not a proper fix, but
better than above.

HTH.
-- Remy


Remove underscore and suffix in reply address for a timely response.


--
gentoo-user@gentoo.org mailing list
Re: Re: "net.eth0 has already been started" showed everytime [ In reply to ]
Thanks, it works.
I tried another way, I removed the hotplug dependency in
/etc/init.d/net.eth0. Well, the message 'net.eth0 has already...' was
gone but the other came:

/sbin/funtions.sh Line 135 syntax error.

And still the network interface worked. Weird

On Mon, 25 Oct 2004 09:26:17 +0200, Remy Blank
<remy.blank_asps@pobox.com> wrote:

>
> I guess you are running udev and have hotplug in the boot runlevel.
> hotplug starts network interfaces silently as it finds them.
>
> I removed the executable bit on /etc/hotplug/net.agent, but that's
> only a quick'n'dirty fix. Another option is the follwing patch:
>
> --- net.agent.orig 2004-10-18 01:38:29.000000000 +0200
> +++ net.agent 2004-10-18 02:00:43.000000000 +0200
> @@ -25,6 +25,12 @@
> exit 1
> fi
>
> +skip=`grep -o $INTERFACE net.skip`
> +if [ -n "^$skip$$" ]; then
> + debug_mesg skipping $INTERFACE
> + exit 0
> +fi
> +
> case $ACTION in
> add|register)
> # Red Hat specific hack...
>
> Then you can put interface names into net.skip, and they will not
> be started automatically by hotplug. Still not a proper fix, but
> better than above.
>
> HTH.
> -- Remy
>
> Remove underscore and suffix in reply address for a timely response.
>
> --
> gentoo-user@gentoo.org mailing list
>
>

--
gentoo-user@gentoo.org mailing list