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 |
328 |
fi |
fi |
329 |
|
|
330 |
# first check for brctl |
# first check for brctl |
331 |
if [[ -z $(which brctl) ]] |
if [[ -z $(type -P brctl) ]] |
332 |
then |
then |
333 |
echo "brctl not found! Please install 'net-misc/bridge-utils'." |
echo "brctl not found! Please install 'net-misc/bridge-utils'." |
334 |
return 1 |
return 1 |