Selaa lähdekoodia

Disable wifi when interface is known

Bob Mottram 8 vuotta sitten
vanhempi
commit
657110355f
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 5
    5
      src/freedombone-wifi

+ 5
- 5
src/freedombone-wifi Näytä tiedosto

458
     exit 0
458
     exit 0
459
 fi
459
 fi
460
 
460
 
461
-if [ $WIFI_DISABLE ]; then
462
-    disable_wifi $WIFI_DISABLE
463
-    exit 0
464
-fi
465
-
466
 if [ ! $wifi_interface_specified= ]; then
461
 if [ ! $wifi_interface_specified= ]; then
467
     update_wifi_adaptors
462
     update_wifi_adaptors
468
     if [ ! $IFACE ]; then
463
     if [ ! $IFACE ]; then
472
     WIFI_INTERFACE=$IFACE
467
     WIFI_INTERFACE=$IFACE
473
 fi
468
 fi
474
 
469
 
470
+if [ $WIFI_DISABLE ]; then
471
+    disable_wifi $WIFI_DISABLE
472
+    exit 0
473
+fi
474
+
475
 if [ -f $WIFI_NETWORKS_FILE ]; then
475
 if [ -f $WIFI_NETWORKS_FILE ]; then
476
     networks_from_file
476
     networks_from_file
477
     exit 0
477
     exit 0