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

Re: laptop wireless setup, wpa_supplicant.conf, driver ipw not supported? CLI only



On Fri, 28 Oct 2011 00:43:08 +0100
Raf Czlonka <rjc@linuxstuff.pl> wrote:

[....]

> There's no need to run wpa_supplicant "by hand" - it integrates nicely
> with ifupdown. You can simply put:
> 
> iface eth0 inet dhcp
> 	wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
> 
> into your /etc/network/interfaces (add "wpa-debug-level 3" if you're
> having problems) and use ifupdown.
[....]

I am doing it differently and it is  complex.

1. I have following at /etc/rc.loacl

` ` ` `
wpa_supplicant -B -Dnl80211 -iwlan0 -c  /usr/local/etc/my.wpa_supplicant.conf

` ` ` `

and at /etc/network/interfaces I have

` ` ` `

mapping wlan0
     script guessnet-ifupdown
     map default: office-wifi
     map  office-wifi open unknown
     map timeout: 12
     # map init-time: 12   # for slow drivers
     map verbose: true
     map debug: true

 iface office-wifi inet dhcp
        test wireless  mac  00:1C:F0:3D:4C:C9
post-up  /root/bin/FIREWALL start

# if all else fails: pick an open network
 iface open inet dhcp
     test wireless open
     wireless-essid any
     wireless-mode auto
` ` ` `

How can I remove the wpa related entry from rc.local and add directly at /etc/interfaces ?

Thanks


Reply to: