# Don't try to configure wifi if there are no adaptors
return
fi
if[-f$WIFI_NETWORKS_FILE];then
rm$WIFI_NETWORKS_FILE
fi
echo$'# Add wifi networks as follows:'>$WIFI_NETWORKS_FILE
echo'#'>>$WIFI_NETWORKS_FILE
echo$'# MySSID'>>$WIFI_NETWORKS_FILE
echo$'# wpa2-psk'>>$WIFI_NETWORKS_FILE
echo$'# myWifiPassphrase'>>$WIFI_NETWORKS_FILE
echo'#'>>$WIFI_NETWORKS_FILE
echo$'# AnotherSSID'>>$WIFI_NETWORKS_FILE
echo$'# none'>>$WIFI_NETWORKS_FILE
echo'#'>>$WIFI_NETWORKS_FILE
wifi_ctr=0
wifi_networks_done=
while[!$wifi_networks_done]
do
data=$(tempfile 2>/dev/null)
trap"rm -f $data" 0 1 2 5 15
dialog --backtitle$"Freedombone Configuration"\
--title$"Wifi Settings ${wifi_ctr}"\
--form$"\nIf you wish to use wifi and have a Free Software compatible adapter (eg. Atheros) rather than wired ethernet then enter the details below, otherwise just select Ok:" 15 55 4 \
# Don't try to configure wifi if there are no adaptors
return
fi
if[-f$WIFI_NETWORKS_FILE];then
rm$WIFI_NETWORKS_FILE
fi
echo$'# Add wifi networks as follows:'>$WIFI_NETWORKS_FILE
echo'#'>>$WIFI_NETWORKS_FILE
echo$'# MySSID'>>$WIFI_NETWORKS_FILE
echo$'# wpa2-psk'>>$WIFI_NETWORKS_FILE
echo$'# myWifiPassphrase'>>$WIFI_NETWORKS_FILE
echo'#'>>$WIFI_NETWORKS_FILE
echo$'# AnotherSSID'>>$WIFI_NETWORKS_FILE
echo$'# none'>>$WIFI_NETWORKS_FILE
echo'#'>>$WIFI_NETWORKS_FILE
wifi_ctr=0
wifi_networks_done=
while[!$wifi_networks_done]
do
data=$(tempfile 2>/dev/null)
trap"rm -f $data" 0 1 2 5 15
dialog --backtitle$"Freedombone Configuration"\
--title$"Wifi Settings ${wifi_ctr}"\
--form$"\nIf you wish to use wifi and have a Free Software compatible adapter (eg. Atheros) rather than wired ethernet then enter the details below, otherwise just select Ok:" 15 55 4 \