Browse Source

Update wifi config

Bob Mottram 8 years ago
parent
commit
5dd5f73218
2 changed files with 3 additions and 1 deletions
  1. 3
    0
      src/freedombone-utils-wifi
  2. 0
    1
      src/freedombone-wifi

+ 3
- 0
src/freedombone-utils-wifi View File

@@ -369,6 +369,9 @@ function networks_from_file {
369 369
         rm -f $WIFI_CONFIG
370 370
     fi
371 371
 
372
+    echo 'update_config=1' > $WIFI_CONFIG
373
+    echo '' >> $WIFI_CONFIG
374
+
372 375
     ctr=0
373 376
     while read -r line
374 377
     do

+ 0
- 1
src/freedombone-wifi View File

@@ -153,7 +153,6 @@ fi
153 153
 
154 154
 if [ -f ${WIFI_NETWORKS_FILE} ]; then
155 155
     networks_from_file
156
-    ifconfig ${WIFI_INTERFACE} up
157 156
     wpa_cli status
158 157
     exit 0
159 158
 fi