Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

09.07.2006, 15:40

[gelöst] eth0 startet immer..

Hallo

bei meinem Laptop soff ifplugd die Kontrolle über die Netzwerkkarten übernehmen. Bislang überwacht er nur eth1, das wlan-Interface. Eth0 ist die Lan-KArte, die NICHT im runlefel default oder boot ist. Dennoch wird eth0 gestartet.

Da gab es hier glaube ich mal einen Beitrag, das das standarmäßig so ist und man sonst etwas in /etc/conf.d/rc änder muss, abe rich weiss nicht mehr was und finde auch den Beitrag nicht mehr.

Gen-Too

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Gen-Too« (14.08.2006, 21:10)


2

09.07.2006, 17:35

Check erstmal meinen Eintrag:

http://www.gentooforum.de/thread.php?threadid=10161
Da hab ich gute Tipps zu, naja einem ähnlichem, thema bekommen.
Man kann nicht alles wissen, aber alles lernen!

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »monsterherz« (09.07.2006, 17:49)


3

10.07.2006, 06:28

Danke. Das war genau der Beitrag, den ich gesucht habe. Ich habs geändert, melde mich nochmal, ob es den gewünschten Effekt bringt.

Grüße Gen-Too

-edit-

Ich habe gemäß dem Beitrag folgendes in die /etc/conf.d/rc eingetragen:

RC_PLUG_SERVICES="!net.*"

Das ändert aber leider nix, eth0 wird immer noch gestartet... Ich teste als nächstes mal, RC_COLDPLUG auf "no" zu setzen.

Gen-Too

-edit-

Das hat jetzt leider etwas gedauert, aber jetzt habe ich RC_COLDPLUG auf no gesetzt. Eth0 wird aber immer noch gestartet und ich weiss jetzt echt nicht mehr warum? Weiss noch jemand weiter?

Gen-Too

Zitat

Original von Gen-Too
Ich habe gemäß dem Beitrag folgendes in die /etc/conf.d/rc eingetragen:

RC_PLUG_SERVICES="!net.*"

Das ändert aber leider nix, eth0 wird immer noch gestartet... Ich teste als nächstes mal, RC_COLDPLUG auf "no" zu setzen.

Gen-Too

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Gen-Too« (10.07.2006, 21:35)


4

23.07.2006, 18:00

Ifplugd iss doch der Demon der Netzwerkgeräte automatisch startet oder?

starte doch mal ohne ifplugd beim booten zu laden damit man weiß ob ifplugd das device hochzieht oder obs was grundsätzliches ist. Ansonsten iss das ja dann ein Problem von Ifplugd.

Weil normalerweise reicht es wenn man Gentoo nach der Installationsanleitung auf Gentoo.org gemacht hat

Quellcode

1
rc-update del net.eth0 default

dann wird das device nicht mehr beim booten hochgezogen.
Dumm sind die Menschen die schlaue Zitate falsch auffassen und gegen sich verwendet sehen.
Schlaue Menschen lernen aus dummen Zitaten und verwenden sie konstruktiv.

5

23.07.2006, 18:06

und wenn du noch ne andere Netzwerkresource benötixt, dann kannst du speziell eth0 auf null setz0rn..
in /etc/conf.d/net einträgen:

Zitat

config_eth0=( "null" )

er meldet zwar immernoch, damit eth0 hochgezogen wird, macht es aber nicht ..
System:
i7 P2600 @ 3,4GHz
jabber: poedel@jabber.ccc.de

6

23.07.2006, 21:38

Hallo,

die Idee mit ifplugd aus dem runlevel raus hatte ich auch. Habe ich jetzt gemacht, mal sehen. Poste nach dem nächsten Neustart nochmal. Eigentlich war ifplugd so konfiguriert, dass er nur eth1 hochzieht.

Gen-Too

-edit-

So, ich habe ifplugd rausgenommen und siehe da - eth0 und auch eth1 werden trotzdem noch gestartet???
Wer hat noch ne Idee... Ich poste mal den rc-status:
rc-update show
* Invalid runlevel entry: /etc/runlevels/boot/.keep
* Invalid runlevel entry: /etc/runlevels/default/.keep
* Invalid runlevel entry: /etc/runlevels/nonetwork/.keep
* Invalid runlevel entry: /etc/runlevels/single/.keep
* Invalid runlevel entry: /etc/runlevels/battery/.keep
acpid | battery default
alsasound | boot
atd | battery default
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
coldplug | battery default
consolefont | boot
cupsd | battery default
dbus | battery default
hald | battery default
hostname | boot
ivman | battery default
keymaps | boot
local | battery default nonetwork
localmount | boot
modules | boot
net.lo | boot
netmount | battery default
ntp-client | battery default
rmnologin | boot
serial | boot
splash | boot
sshd | battery default
syslog-ng | battery default
urandom | boot
vixie-cron | battery default
xdm | battery default

Weiss btw jemand was diese Fehlermeldungen am Anfang mit sagen?

Gen-Too

7

24.07.2006, 15:46

Zitat

Original von Gen-Too
Weiss btw jemand was diese Fehlermeldungen am Anfang mit sagen?


benutze doch mal bitte die suche - keine lust die links hier reinzuhauen. ;)
MfG MyD

8

26.07.2006, 07:51

Hallo MyD,

das habe ich gemacht, hat mich aber zu keinem meiner Probleme weitergebracht. Wie ich oben schon geschrieben habe steht RC_COLDPLUG auf no. Das war es bei mir nicht, auch wenn das anderen wohl geholfen hat.

Grüße Gen-Too

-edit-

Hallo,

ich komme nicht drauf warum das bei mir so ist, aber das Problem besteht unverändert. Nichts im runlevel, RC_COLDPLUG="no" und trotzdem gehen beide Netzwerkdevices hoch. In dmesg ist auch nichts besonderes vermerkt außer, dass die Netzwerk-Devices gestartet werden....

Hat noch jemand eine Idee? RC_COLDPLUG="no" alleine reicht wohl nicht, irgendwo muss noch ein anderer Schalter sein.

Gen-Too

9

26.07.2006, 09:48

Quellcode

1
2
3
4
5
6
7
8
# 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.*"
"Erst nachdem wir alles verloren haben, haben wir die Freiheit, alles zu tun."
"It's only after we've lost everything, that we're free to do anything!"

Jabber: Die ID kann via PN erfragt werden.

10

30.07.2006, 09:36

Hab ich auch schon gemacht, ohne Erfolg. Im Moment sind in beide Optionen in meiner /etc/conf.d/rc gesetzt, trotzdem starten beide Netzwerkinterfaces.....

?(

-edit-

So ich versuche jetzt mal systematisch andere Dieneste aus dem runlevel zu nehmen, um rauszufinden, welcher da möglicherweise meine Netzwerkinterfaces startet. Hier mal rc-update show, bin für Tipps dankar was Schuld sein könnte:

acpid | battery default
alsasound | boot
atd | battery default
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
coldplug | battery default
consolefont | boot
cupsd | battery default
dbus | battery default
hald | battery default
hostname | boot
ivman | battery default
keymaps | boot
local | battery default nonetwork
localmount | boot
modules | boot
net.lo | boot
netmount | battery
ntp-client | battery default
rmnologin | boot
serial | boot
splash | boot
sshd | battery default
syslog-ng | battery default
urandom | boot
vixie-cron | battery default
xdm | battery default

-edit-

So ich bin wieder einen Schritt weiter, aber nicht unbedingt schlauer: Wenn ich coldplug aus dem runlevel nehme, starten die Interfaces nicht....
Ich wollte zum debugging mal den Bootvorgang loggen lassen. Dazu bin ich vorgegangen wie hier: http://www.gentoo.org/news/de/gwn/20050822-newsletter.xml unter 5. beschrieben. Das interesante: Nach einem Neustart habe ich keine Datei boot.msg in /var/log? Das bedeutet für mich irgendwie, dass die Änderungen in /etc/conf.d/rc bei mir nicht berücksichtigt werden?!?!
In dem Link steht aber auch, dass das mit baselayout 1.12 geht, ich habe mal bei mir gesucht und gefunden:

sys-apps/baselayout
Latest version available: 1.11.15-r3
Latest version installed: 1.11.15-r3
Size of files: 157 kB
Homepage: http://www.gentoo.org/
Description: Filesystem baselayout and init scripts
License: GPL-2

Ich nutze von einigen Ausnahmen abgesehen den stable-Zweig, kann es sein, dass die /etc/conf.d/rc erst bei baselayout 1.12 Auswirkungen hat?

Gen-Too

Anhang: /etc/conf.d/rc, vielleicht könnte ja mal jemand sein rc posten zum Vergleich?

# /etc/conf.d/rc: Global config file for the Gentoo RC System

# This is the number of tty's used in most of the rc-scripts (like
# consolefont, numlock, etc ...)

RC_TTY_NUMBER=11

# Set to "yes" if you want the rc system to try and start services
# in parallel for a slight speed improvement.

RC_PARALLEL_STARTUP="no"

# Do we allow services to be hotplugged? If not, set to RC_HOTPLUG="no"
# NOTE: This does not affect anything hotplug/udev related, just the
# starting/stopping of the init.d service triggered by hotplug.

RC_COLDPLUG="no"

# 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 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.*"

# RC_NET_STRICT_CHECKING allows some flexibility with the 'net' service.
# The following values are allowed:
# none - The 'net' service is always considered up.
# no - This basically means that at least one net.* service besides net.lo
# must be up. This can be used by notebook users that have a wifi and
# a static nic, and only wants one up at any given time to have the
# 'net' service seen as up.
# lo - This is the same as the 'no' option, but net.lo is also counted.
# This should be useful to people that do not care about any specific
# interface being up at boot.
# yes - For this ALL network interfaces MUST be up for the 'net' service to
# be considered up.

RC_NET_STRICT_CHECKING="no"

# RC_VOLUME_ORDER allows you to specify, or even remove the volume setup
# for various volume managers (MD, EVMS2, LVM, DM, etc). Note that they are
# stopped in reverse order.

RC_VOLUME_ORDER="raid evms lvm dm"

# RC_BOOTLOG will generate a log of the boot messages shown on the console.
# Useful for headless machines or debugging. You need to emerge the
# app-admin/showconsole package for this to work. Note that this probably
# won't work correctly with boot splash.

RC_BOOTLOG="yes"

# RC_USE_FSTAB allows you to override the default mount options for the
# standard /proc, /sys, /dev, and /dev/pts mount points. Note that this
# is the new way for selecting ramfs/tmpfs/etc... for udev mounting.

RC_USE_FSTAB="no"

# RC_USE_CONFIG_PROFILE allows you to have different /etc/conf.d files
# based on your runlevel - if a conf.d file for your profile does not exist
# then we try and use the default one.
# To enable runlevel selection at boot, append "softlevel=foobar" to your
# kernel line to change to the foobar runlevel. Or "rc foobar" at the command
# prompt.

RC_USE_CONFIG_PROFILE="yes"

# RC_FORCE_AUTO tries its best to prevent user interaction during the boot and
# shutdown process. For example, fsck will automatically be run or volumes
# remounted to create proper directory trees. This feature can be dangerous
# and is meant ONLY for headless machines where getting a physical console
# hooked up is a huge pita.

RC_FORCE_AUTO="no"

# Use this variable to control the /dev management behavior.
# auto - let the scripts figure out what's best at boot
# devfs - use devfs (requires sys-fs/devfsd)
# udev - use udev (requires sys-fs/udev)
# static - let the user manage /dev

RC_DEVICES="auto"

# UDEV OPTION:
# Set to "yes" if you want to save /dev to a tarball on shutdown
# and restore it on startup. This is useful if you have a lot of
# custom device nodes that udev does not handle/know about.

RC_DEVICE_TARBALL="no"

# RC_SWAP_ERASE controls erasing of swap partitions at shutdown.
# Useful for all those paranoid peeps to nuke their memory.

RC_SWAP_ERASE="no"





#
# Controlling start-stop-daemon behavior
#
# NOTE: most of these are not in use yet!!
#

# Set to "yes" if stop-daemon() should always retry killing the
# service if it fails the first time.

RC_RETRY_KILL="yes"


# Set the amount of seconds stop-daemon() should wait between
# retries. $RC_RETRY_KILL should be set to "yes".

RC_RETRY_TIMEOUT=1


# Set the amount of times stop-daemon() should try to kill
# a service before giving up. $RC_RETRY_KILL should be set to "yes".

RC_RETRY_COUNT=5


# Set to "yes" if stop-daemon() should fail if the service
# is marked as started, but not actually running on stop.

RC_FAIL_ON_ZOMBIE="no"





#
# Internal configuration variables
#
# NB: These are for advanced users, and you should really
# know what you are doing before changing them!
#


# rc-scripts dep-cache directory
#
# NOTE: Do not remove the next line, as its needed by the baselayout ebuild!
#
# svcdir="/var/lib/init.d"

svcdir="/var/lib/init.d"


# Should we mount $svcdir in a ram disk for some speed increase
# for slower machines, or for the more extreme setups ?

svcmount="no"


# FS type that should be used for $svcdir. Note that you need
# $svcmount above set to "yes" for this to work ... Currently
# tmpfs, ramfs, and ramdisk are supported (tmpfs is the default).

svcfstype="tmpfs"


# Size of $svcdir in KB. Note that ramfs doesn't support this
# due to kernel limitations.

svcsize=2048

-edit-

Inzwischen wird immerhin eine leere /var/log/boot.msg angelegt...

-edit-

so seit dem letzten Update gibt es bei mir auch die Option RC_HOTPLUG. Auf no gesetzt und schon geht alles so wie es soll :-D