Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
notebook, baselayout 1.12 -> wlan bei kabel eth deaktiviere?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
stiwi
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 266
Location: hamburg - germany

PostPosted: Thu Aug 31, 2006 8:30 am    Post subject: notebook, baselayout 1.12 -> wlan bei kabel eth deaktivie Reply with quote

Ich habe eine übliche Notebookausstattung mit 2 Netzwerkkarten. eth0 (ethernet) eth1 (w-lan). ich habe mich in die net doku vom neuen baslayout reingelesen, werde aber nicht draus schlau. ich möchte folgendes erreichen:

wenn kabel in eth0 gesteckt wird soll eth1 deaktiviert werden. beim rausziehen des kabels soll eth1 aktiviert werden. ist sowas möglich mit dem vorhandenen system, oder muss man da selber stricken?

danke
Back to top
View user's profile Send private message
Rene-dev
Apprentice
Apprentice


Joined: 22 Jan 2005
Posts: 163
Location: Münster, Germany

PostPosted: Thu Aug 31, 2006 9:48 am    Post subject: Reply with quote

Code:
* sys-apps/ifplugd
     Available versions:  0.28-r5 ~0.28-r6 ~0.28-r7
     Installed:           0.28
     Homepage:            http://0pointer.de/lennart/projects/ifplugd/
     Description:         Brings up/down ethernet ports automatically with cable detection


in der wlan karte "steckt ein kabel" wenn die mit einem ap verbunden ist.

rene
Back to top
View user's profile Send private message
stiwi
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 266
Location: hamburg - germany

PostPosted: Thu Aug 31, 2006 10:13 am    Post subject: Reply with quote

wie funktioniert ifplugd eigentlich mit demneuen baselayout? früher hatte ich das schon laufen, aber jetzt startet er bei mir immer netplugd ...
Back to top
View user's profile Send private message
xraver
Veteran
Veteran


Joined: 20 Aug 2003
Posts: 1083
Location: Halberstadt

PostPosted: Thu Aug 31, 2006 10:15 am    Post subject: Reply with quote

Da hab ich gleich auch noch ne Frage dazu. Wie kann ich verhindern das eth0 beim booten gestartet wird. Immer wenn der Treiber geladen wird - dann wird auch eth0 gestartet.

Code:
~ # rc-update del eth0
 * 'eth0' not found in any of the specified runlevels


Ist schon etwas nervig wenn eth0/dhcp beim booten gestartet werden wenn kein Kabel drinn ist.
Back to top
View user's profile Send private message
stiwi
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 266
Location: hamburg - germany

PostPosted: Thu Aug 31, 2006 10:19 am    Post subject: Reply with quote

xraver wrote:
Da hab ich gleich auch noch ne Frage dazu. Wie kann ich verhindern das eth0 beim booten gestartet wird. Immer wenn der Treiber geladen wird - dann wird auch eth0 gestartet.

Code:
~ # rc-update del eth0
 * 'eth0' not found in any of the specified runlevels


Ist schon etwas nervig wenn eth0/dhcp beim booten gestartet werden wenn kein Kabel drinn ist.


das stellt man eigentlich in der /etc/conf.d/rc ein. unter RC_PLUG_SERVICES, RC_NET_STRICT_CHECKING, RC_DOWN_INTERFACE. hab aber leider nie verstanden und hinbekommen, das er es auch macht..
Back to top
View user's profile Send private message
Rene-dev
Apprentice
Apprentice


Joined: 22 Jan 2005
Posts: 163
Location: Münster, Germany

PostPosted: Thu Aug 31, 2006 10:20 am    Post subject: Reply with quote

gug mal wo das drin ist
Code:
rc-status -a


netplug scheint besser zu sein als ifplugd

rene
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Thu Aug 31, 2006 10:20 am    Post subject: Reply with quote

xraver wrote:
Da hab ich gleich auch noch ne Frage dazu. Wie kann ich verhindern das eth0 beim booten gestartet wird. Immer wenn der Treiber geladen wird - dann wird auch eth0 gestartet.

Code:
~ # rc-update del eth0
 * 'eth0' not found in any of the specified runlevels


Ist schon etwas nervig wenn eth0/dhcp beim booten gestartet werden wenn kein Kabel drinn ist.


net.eth0 heißt es richtig
Back to top
View user's profile Send private message
forrestfunk81
Guru
Guru


Joined: 07 Feb 2006
Posts: 565
Location: münchen.de

PostPosted: Thu Aug 31, 2006 11:05 am    Post subject: Reply with quote

falls net.eth0 in keinem runlevel ist und bei Boot trotzdem startet (irgendwann nach "Device initiated Services" oä) ist das ein Bug [edit]oder Feature :wink: [/edit] von coldplug
https://bugs.gentoo.org/show_bug.cgi?id=129331

einfach in /etc/conf.d/rc
Code:
RC_PLUG_SERVICES="!net.eth0"

eintragen und das sollte nichtmehr starten

https://forums.gentoo.org/viewtopic-t-452538-highlight-device+initiated.html
https://forums.gentoo.org/viewtopic-t-452535-highlight-device+initiated.html
_________________
# cd /pub/
# more beer
Back to top
View user's profile Send private message
xraver
Veteran
Veteran


Joined: 20 Aug 2003
Posts: 1083
Location: Halberstadt

PostPosted: Thu Aug 31, 2006 11:47 am    Post subject: Reply with quote

Finswimmer wrote:
xraver wrote:
Da hab ich gleich auch noch ne Frage dazu. Wie kann ich verhindern das eth0 beim booten gestartet wird. Immer wenn der Treiber geladen wird - dann wird auch eth0 gestartet.

Code:
~ # rc-update del eth0
 * 'eth0' not found in any of the specified runlevels


Ist schon etwas nervig wenn eth0/dhcp beim booten gestartet werden wenn kein Kabel drinn ist.


net.eth0 heißt es richtig


Joop, hast Recht - aber das gleiche Ergebnis. (habs nur falsch abgetippt)

@forrestfunk81
Thx, werds gleich mal antesten.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum