fi
#configure WPA
if [ -x "${WPA_SUPPLICANT:=$DEFAULT_WPA_SUPPLICANT}" ]; then
if [ -x "${WPA_SUPPLICANT:=$DEFAULT_WPA_SUPPLICANT}" -a -f $MYIFACEDIR/wpa_supplicant.conf ]; then
$WPA_SUPPLICANT -i$NAME ${WPA_DRIVER:?-D$WPA_DRIVER}
prof_conf=`profiled_filename $MYIFACEDIR/wpa_supplicant.conf`
$WPA_SUPPLICANT -i$NAME${WPA_DRIVER:+ -D$WPA_DRIVER}${prof_conf:+ -c $prof_conf} 2>&1>/dev/null &
echo $! >/var/run/wpa_supplicant-$NAME.pid