Disable wifi when interface is known

This commit is contained in:
Bob Mottram 2016-10-21 10:11:23 +01:00
parent 0ffe36cbc2
commit 657110355f
1 changed files with 5 additions and 5 deletions

View File

@ -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