Disable wifi when interface is known
This commit is contained in:
parent
0ffe36cbc2
commit
657110355f
|
@ -458,11 +458,6 @@ if [ $NETWORKS_INTERACTIVE ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if [ $WIFI_DISABLE ]; then
|
||||
disable_wifi $WIFI_DISABLE
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ ! $wifi_interface_specified= ]; then
|
||||
update_wifi_adaptors
|
||||
if [ ! $IFACE ]; then
|
||||
|
@ -472,6 +467,11 @@ if [ ! $wifi_interface_specified= ]; then
|
|||
WIFI_INTERFACE=$IFACE
|
||||
fi
|
||||
|
||||
if [ $WIFI_DISABLE ]; then
|
||||
disable_wifi $WIFI_DISABLE
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -f $WIFI_NETWORKS_FILE ]; then
|
||||
networks_from_file
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue