[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Automatische WLAN-Verbindung beim Start



Camillo Herder:
> 
> vielleicht gibt es eine Lösung für mein folgendes Problem: Ich suche
> nach einer Möglichkeit, dass sich mein System, sobald die Maschine
> hochgefahren wird (und noch bevor sich ein User einlogt), mit der
> Suche nach einem offenen WLAN beginnt und diese Suche so lange
> fortsetzt, bis es eines gefunden hat. Sobald dies der Fall ist, soll
> ein Skript gestartet werden.

Und wahrscheinlich soll sich das System auch mit dem gefundenen WLAN
verbinden? -Kein Problem mit wpasupplicant und Debian-Bordmitteln.

Ausschnitt aus meiner /etc/wpa_supplicant/wpa_supplicant.conf.local
(dort definiert man die bekannten Netze):

network={
        ssid="landfill"
        id_str="home"
        key_mgmt=WPA-PSK
        psk="geheim"
        priority=5
}

network={
        ssid="NETGEAR"
        id_str="default"
        key_mgmt=NONE
        wep_key0="auch geheim"
        wep_tx_keyidx=0
}

network={
        ssid="tmobile"
        id_str="default"
        key_mgmt=NONE
}

Und in der /etc/network/interfaces (die Interface-Namen in den "roaming
profiles" entsprechen den Angaben von "id_str" in der
wpasupplicant.conf):

allow-hotplug wlan0
iface wlan0 inet manual
        wpa-driver wext
        wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf.local

# wpa-supplicant roaming profiles
#
iface home inet dhcp
        openvpn xenhost

iface default inet dhcp


Im default-Block kannst Du natürlich per post-up, post-down etc.
beliebige Skripte starten (man 5 interfaces).


J.
-- 
I like my Toyota RAV4 because of the commanding view of the traffic
jams.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

Attachment: signature.asc
Description: Digital signature


Reply to: