From d64782d20bf9355d62197c1b3c1a51aab8cb8011 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 21 Oct 2016 14:18:05 +0100 Subject: [PATCH] Bring up wifi interface --- src/freedombone-utils-wifi | 5 +++++ src/freedombone-wifi | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/freedombone-utils-wifi b/src/freedombone-utils-wifi index 7d67c75d..d0eefc9f 100755 --- a/src/freedombone-utils-wifi +++ b/src/freedombone-utils-wifi @@ -68,6 +68,11 @@ function setup_wifi_atheros { tar -xzvf $atheros_drivers_file reset_usb_devices cd $curr_dir + update_wifi_adaptors + if [ $IFACE ]; then + ifconfig $IFACE down + ifconfig $IFACE up + fi } function setup_wifi { diff --git a/src/freedombone-wifi b/src/freedombone-wifi index 036c9d9c..49635e69 100755 --- a/src/freedombone-wifi +++ b/src/freedombone-wifi @@ -85,6 +85,8 @@ do WIFI_INTERFACE=${1} wifi_interface_specified=1 write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE" + ifconfig $WIFI_INTERFACE down + ifconfig $WIFI_INTERFACE up ;; -t|--type) shift @@ -140,6 +142,8 @@ if [ ! $wifi_interface_specified= ]; then fi WIFI_INTERFACE=$IFACE write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE" + ifconfig $WIFI_INTERFACE down + ifconfig $WIFI_INTERFACE up fi if [ $WIFI_DISABLE ]; then