<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Hello,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I want to receive the following sequence:</DIV>
<DIV>&nbsp;</DIV>
<DIV>If plug in my usb wlan stick wpa_supplicant should start making a connction with given parameters.</DIV>
<DIV>If I unplug my usb stick wpa_supplicant should close this connection and reconnect if the usb stick is plugged in again.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have tried the following:</DIV>
<DIV>&nbsp;</DIV>
<DIV>(Once at startup:) wpa_supplicant -g/var/run/wpa_supplicant-global -B</DIV>
<DIV>&nbsp;</DIV>
<DIV>Now, when I enter:(later this should be automaticalley done, when a usb wlan stick is inserted right ?)</DIV>
<DIV>&nbsp;</DIV>
<DIV>wpa_cli -g/var/run/wpa_supplicant-global interface_add wlan0 "" wext /var/run/wpa_supplican</DIV>
<DIV>&nbsp;</DIV>
<DIV>wpa_cli -a/etc/wpa_supplicant/detect.h -B</DIV>
<DIV>wpa_cli -iwlan0 add_network</DIV>
<DIV>wpa_cli -iwlan0 set_network 0 ssid '"obid3"'</DIV>
<DIV>wpa_cli -iwlan0 set_network 0 key_mgmt NONE</DIV>
<DIV>wpa_cli -iwlan0 enable_network 0</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>A connection is established, but the script detect.sh isn´t executed ?!</DIV>
<DIV>If I unplug my usb-stick and plug it again - no connection .....</DIV>
<DIV>&nbsp;</DIV>
<DIV>what´s wrong ?</DIV>
<DIV>Thank you</DIV>
<DIV>&nbsp;</DIV>
<DIV>Manuel Sahm</DIV></BODY></HTML>