167 |
return 1 |
return 1 |
168 |
fi |
fi |
169 |
|
|
170 |
if [ ! -x /sbin/wpa_supplicant ] |
if [ ! -x $(type -P wpa_supplicant) ] |
171 |
then |
then |
172 |
echo "WPA: wpa_supplicant not installed. Aborting setup." |
echo "WPA: wpa_supplicant not installed. Aborting setup." |
173 |
return 1 |
return 1 |
177 |
[[ -f /etc/conf.d/wpa_supplicant ]] && source /etc/conf.d/wpa_supplicant |
[[ -f /etc/conf.d/wpa_supplicant ]] && source /etc/conf.d/wpa_supplicant |
178 |
|
|
179 |
# check the configuration |
# check the configuration |
180 |
[[ -z ${WIRELESS_WPA_CONFIG} ]] && WIRELESS_WPA_CONFIG=/etc/wpa_supplicant.auto |
[[ -z ${WIRELESS_WPA_CONFIG} ]] && WIRELESS_WPA_CONFIG=/etc/wpa_supplicant/wpa_supplicant.auto |
181 |
[[ -z ${WIRELESS_WPA_SKEL} ]] && WIRELESS_WPA_SKEL=/etc/conf.d/wpa_supplicant.skel |
[[ -z ${WIRELESS_WPA_SKEL} ]] && WIRELESS_WPA_SKEL=/etc/conf.d/wpa_supplicant.skel |
182 |
|
|
183 |
# use wext as default driver, do not abort here anymore |
# use wext as default driver, do not abort here anymore |
441 |
fi |
fi |
442 |
|
|
443 |
# now configure wireless_extensions |
# now configure wireless_extensions |
444 |
[ -x /usr/sbin/iwconfig ] && setup_wireless_extensions "${iface}" |
[ -x $(type -P iwconfig) ] && setup_wireless_extensions "${iface}" |
445 |
|
|
446 |
# activate the interface |
# activate the interface |
447 |
ifconfig "${iface}" up |
ifconfig "${iface}" up |