I made a patch to put wpa_supplicant support into the new initscripts that just came out. I had made a patch for the version in testing a while ago and posted it on the forum and filed a bug report hoping that support for wpa would be added to the new release. The attached patch applies to /usr/bin/netcfg that came with initscripts 0.7.1-1. Then add WPAOPTS="" into your network profile to start wpa_supplicant. You can also specify a driver for supplicant to use if you have compiled it with more then one. ie WPAOPTS="-D madwifi".
andy
53a54,56 > # shutdown wpa_supplicant, if its running > [ "$WPAOPTS" ] && wpa_cli terminate >/dev/null 2>&1 > 91c94 < unset DESCRIPTION INTERFACE IFOPTS IWOPTS WIFI_INTERFACE WIFI_WAIT --- > unset DESCRIPTION INTERFACE IFOPTS IWOPTS WIFI_INTERFACE WIFI_WAIT WPAOPTS 102a106,129 > # Start wpa_supplicant, if necessary > if [ "$WPAOPTS" ]; then > ifconfig $WIFI_INTERFACE up > wpa_supplicant -wB -i $WIFI_INTERFACE -c /etc/wpa_supplicant.conf $WPAOPTS > # I lifted most of this next block from phracture's wireless script on > # the wiki http://wiki.archlinux.org/index.php/Wireless_Bootup_Script > > ##### > #I don“t know how we could determine if wpa_supplicant is ready... > sleep 2 > let i=0 > while ! /usr/bin/wpa_cli status | grep "wpa_state=COMPLETED" >/dev/null 2>&1; do > if [ $i -gt 10 ]; then > wpa_cli terminate >/dev/null 2>&1 > #ifconfig $WIFI_INTERFACE down > stat_fail && return > fi > sleep 2 > let i++ > done > ###### > > fi >
_______________________________________________ arch mailing list [email protected] http://www.archlinux.org/mailman/listinfo/arch
