[pkg-wpa-devel] wpasupplicant from ifupdown?

Kel Modderman kelrin at tpg.com.au
Wed Mar 8 14:03:44 UTC 2006


Reinhard Tartler wrote:

> Wouldn't something like this work:
>
>iface wifi0 inet dhcp
>	wpa-conf managed
>	wpa-driver `cat /etc/wpasupplicant/driver`
>	wpa-psk	`cat /etc/wpasupplicant/psk.key`
>
>Otherwise we could perhaps invent this statement:
>
>iface wifi0 inet dhcp
>	wpa-conf managed
>	wpa-driver-file /etc/wpasupplicant/driver
>	wpa-psk-file /etc/wpasupplicant/psk.key
>
>  
>
>>My suggestion is that some stancas like wpa-psk can take a filename as a
>>parameter. This file would then contain the key, and be root-read-only.
>>    
>>
>
>Or user read only. the script runs as root, and root can read user
>files. So you won't need to be root to change your psk.
>
>  
>

Remind me to add this support into the pre-up script over the course of 
the next few days. 2nd example looks good.

Thanks, Kel.



More information about the Pkg-wpa-devel mailing list