PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : wpa_supplicant beim booten starten



Don Roberto
18.12.06, 12:23
Hallo
Ich starte wpa_supplicant immer in der konsole. Im KDE. Und dann erstt dhclient ath0 auch in der kosole. Wie kann ich das den alles bei booten einrichten?



momentan
/usr/local/sbin/wpa_supplicant -dd -K -t -i ath0 -D madwifi -c /etc/wpa_supplicant.conf
und dan
dhclient ath0


Hab schon versuch das problem zu lösen hat aber nicht geklabt.


auto ath0
iface ath0 inet dhcp
wpa-driver wext
wpa-conf /etc/wpasupplicant.conf

so hab ich die /etc/network/interfaces editirt aber das hat nicht geklabt.

Dann hab ich noch versuch üder /etc/init.d hab ich das geschrieben


#! /bin/sh
/usr/local/sbin/wpa_supplicant -dd -K -t -i ath0 -D madwifi -c /etc/wpa_supplicant.conf
exit 0

und hab die dann in die /etc/rcX verteilt über dem networking

Aber alles ohne erfolg muss weiterhin über die konsole gehen.
Wie starte ich das den vor werend dem bootvorgang so das ich online bin wenn ich mich einloge.

Gruß Don Roberto

oli993
18.12.06, 12:29
Welche Distribution?

Don Roberto
18.12.06, 12:34
debian 4.0

gadget
19.12.06, 15:35
Hi,

mein Eintrag in der /etc/network/interfaces:


pre-up wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -ddGruß,
gadget

Don Roberto
21.12.06, 21:47
momendtahn siht das so aus bei mir



# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 172.0.0.25
netmask 255.255.255.0
network 172.0.0.0
broadcast 172.0.0.255



auto ath0
pre-up /usr/local/sbin/wpa_supplicant -B -Dwext -iath0 -c/etc/wpa_supplicant.conf -dd
iface ath0 inet dhcp
post-down killall -q wpa_supplicant


aber das geht nicht.
ist die reihenfolge viel leicht falch oder syntex?

gadget
22.12.06, 08:36
Oben nutzt Du madwifi, aber in Deiner interfaces wext.
Dann setz mal an den Anfang ein
mapping ath0

Zu Deinem /etc/init.d-Skript: hast Du es ausführbar gemacht? Und hat es in /etc/rc[DEIN_RUNLEVEL] eine möglichst hohe Nummer (99), damit es erst spät gestartet wird?

Ausserdem solltest Du mal die Meldungen beim Booten beobachten.

tschloss
22.12.06, 09:08
momendtahn siht das so aus bei mir
aber das geht nicht.
ist die reihenfolge viel leicht falch oder syntex?

lol - ist da die Katze über die Tatstatur gelaufen?

Don Roberto
22.12.06, 11:31
Meinst du bei auto?



mapping ath0
pre-up /usr/local/sbin/wpa_supplicant -B -Dwext -iath0 -c/etc/wpa_supplicant.conf -dd
iface ath0 inet dhcp
post-down killall -q wpa_supplicant


Ja die Katze macht hier was sie will :-)

gadget
22.12.06, 12:21
Nein, nicht ganz.


# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping eth0
# script grep
# map eth0
mapping ath0
# script grep
# map ath0

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 172.0.0.25
netmask 255.255.255.0
network 172.0.0.0
broadcast 172.0.0.255

# WLAN
allow-hotplug ath00
iface ath0 inet dhcp
pre-up /usr/local/sbin/wpa_supplicant -B -Dmadwifi -iath0 -c/etc/wpa_supplicant.conf -dd

Don Roberto
22.12.06, 15:05
Geht jetzt.
nur aus allow-hotplug ath00 muss natürlich allow-hotplug ath0 gemacht werden

gadget
22.12.06, 20:51
Geht jetzt.
nur aus allow-hotplug ath00 muss natürlich allow-hotplug ath0 gemacht werden
Oops, Tippfehler :o

Na dann, Glückwunsch und Frohe Weihnachten!

gadget