Initial wifi networks file comments
This commit is contained in:
parent
d1ac3cddad
commit
066aa18ff5
|
@ -1704,10 +1704,19 @@ function wifi_edit_networks {
|
|||
if [ -f /etc/hostapd/hostapd.conf ]; then
|
||||
return
|
||||
fi
|
||||
editor $WIFI_NETWORKS_FILE
|
||||
if [ -f $WIFI_NETWORKS_FILE ]; then
|
||||
${PROJECT_NAME}-wifi --networks $WIFI_NETWORKS_FILE
|
||||
if [ ! -f $WIFI_NETWORKS_FILE ]; then
|
||||
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
|
||||
fi
|
||||
editor $WIFI_NETWORKS_FILE
|
||||
${PROJECT_NAME}-wifi --networks $WIFI_NETWORKS_FILE
|
||||
}
|
||||
|
||||
function hotspot_settings {
|
||||
|
|
|
@ -264,6 +264,16 @@ function networks_from_file {
|
|||
function create_networks_interactive {
|
||||
if [ -f $WIFI_NETWORKS_FILE ]; then
|
||||
rm $WIFI_NETWORKS_FILE
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
wifi_ctr=0
|
||||
|
|
Loading…
Reference in New Issue