2009-06...@12:44 kimaidou
> #!/bin/sh
> ifconfig eth0 up
> wpa_supplicant -i eth0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B
> udhcpc eth0
> #!/bin/sh
> killall wpa_supplicant
> ifconfig eth0 down
>
> So 3rd question:
> * Is it the proper way too ?
try to modify your /etc/network/interfaces like this:
under iface eth0 inet dhcp...
iface eth0 inet dhcp (you have this line)
wpa_conf /etc/wpa_supplicant/wpa_supplicant.conf
down wpa_cli term &
__^^^__
[_TAB_]wpa_conf
[_TAB_]down
now when you switch on the wifi you should have your .conf automatically loaded
and when you switch off again, the supplicant will be terminated.
let me know
--
ALFA21 IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
IMPLIED.
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user