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
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $WIFI_DISABLE ]; then
|
|
||||||
disable_wifi $WIFI_DISABLE
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! $wifi_interface_specified= ]; then
|
if [ ! $wifi_interface_specified= ]; then
|
||||||
update_wifi_adaptors
|
update_wifi_adaptors
|
||||||
if [ ! $IFACE ]; then
|
if [ ! $IFACE ]; then
|
||||||
|
@ -472,6 +467,11 @@ if [ ! $wifi_interface_specified= ]; then
|
||||||
WIFI_INTERFACE=$IFACE
|
WIFI_INTERFACE=$IFACE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $WIFI_DISABLE ]; then
|
||||||
|
disable_wifi $WIFI_DISABLE
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f $WIFI_NETWORKS_FILE ]; then
|
if [ -f $WIFI_NETWORKS_FILE ]; then
|
||||||
networks_from_file
|
networks_from_file
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue