Explorar el Código

Use automatic wifi adaptor detection

Bob Mottram hace 8 años
padre
commit
0ffe36cbc2
Se han modificado 2 ficheros con 7 adiciones y 7 borrados
  1. 4
    4
      src/freedombone-image-customise
  2. 3
    3
      src/freedombone-utils-wifi

+ 4
- 4
src/freedombone-image-customise Ver fichero

@@ -462,12 +462,12 @@ atheros_wifi() {
462 462
 }
463 463
 
464 464
 configure_wifi() {
465
-    if [[ $VARIANT == "mesh" || $VARIANT == "meshclient" || $VARIANT == "meshusb" ]]; then
465
+    if [[ $VARIANT == "mesh"* ]]; then
466 466
         return
467 467
     fi
468 468
 
469 469
     if [ -f $WIFI_NETWORKS_FILE ]; then
470
-        chroot "$rootdir" ${PROJECT_NAME}-wifi -i $WIFI_INTERFACE --networks $WIFI_NETWORKS_FILE
470
+        chroot "$rootdir" ${PROJECT_NAME}-wifi --networks $WIFI_NETWORKS_FILE
471 471
         return
472 472
     fi
473 473
 
@@ -475,9 +475,9 @@ configure_wifi() {
475 475
         if [ ${#WIFI_PASSPHRASE} -lt 2 ]; then
476 476
             return
477 477
         fi
478
-        chroot "$rootdir" ${PROJECT_NAME}-wifi -i $WIFI_INTERFACE -s $WIFI_SSID -t $WIFI_TYPE -p $WIFI_PASSPHRASE --hotspot $WIFI_HOTSPOT
478
+        chroot "$rootdir" ${PROJECT_NAME}-wifi -s $WIFI_SSID -t $WIFI_TYPE -p $WIFI_PASSPHRASE --hotspot $WIFI_HOTSPOT
479 479
     else
480
-        chroot "$rootdir" ${PROJECT_NAME}-wifi -i $WIFI_INTERFACE -s $WIFI_SSID -t $WIFI_TYPE --hotspot $WIFI_HOTSPOT
480
+        chroot "$rootdir" ${PROJECT_NAME}-wifi -s $WIFI_SSID -t $WIFI_TYPE --hotspot $WIFI_HOTSPOT
481 481
     fi
482 482
 }
483 483
 

+ 3
- 3
src/freedombone-utils-wifi Ver fichero

@@ -60,7 +60,7 @@ function setup_wifi {
60 60
     fi
61 61
 
62 62
     if [ -f $WIFI_NETWORKS_FILE ]; then
63
-        ${PROJECT_NAME}-wifi -i $WIFI_INTERFACE --networks $WIFI_NETWORKS_FILE
63
+        ${PROJECT_NAME}-wifi --networks $WIFI_NETWORKS_FILE
64 64
         mark_completed $FUNCNAME
65 65
         return
66 66
     fi
@@ -74,9 +74,9 @@ function setup_wifi {
74 74
             echo $'Wifi passphrase was too short'
75 75
             return
76 76
         fi
77
-        ${PROJECT_NAME}-wifi -i $WIFI_INTERFACE -s $WIFI_SSID -t $WIFI_TYPE -p $WIFI_PASSPHRASE --hotspot $HOTSPOT --networks $WIFI_NETWORKS_FILE
77
+        ${PROJECT_NAME}-wifi -s $WIFI_SSID -t $WIFI_TYPE -p $WIFI_PASSPHRASE --hotspot $HOTSPOT --networks $WIFI_NETWORKS_FILE
78 78
     else
79
-        ${PROJECT_NAME}-wifi -i $WIFI_INTERFACE -s $WIFI_SSID -t $WIFI_TYPE --hotspot $HOTSPOT --networks $WIFI_NETWORKS_FILE
79
+        ${PROJECT_NAME}-wifi -s $WIFI_SSID -t $WIFI_TYPE --hotspot $HOTSPOT --networks $WIFI_NETWORKS_FILE
80 80
     fi
81 81
     mark_completed $FUNCNAME
82 82
 }