Bring up wifi interface

This commit is contained in:
Bob Mottram 2016-10-21 14:18:05 +01:00
parent 882ea66ef7
commit d64782d20b
2 changed files with 9 additions and 0 deletions

View File

@ -68,6 +68,11 @@ function setup_wifi_atheros {
tar -xzvf $atheros_drivers_file tar -xzvf $atheros_drivers_file
reset_usb_devices reset_usb_devices
cd $curr_dir cd $curr_dir
update_wifi_adaptors
if [ $IFACE ]; then
ifconfig $IFACE down
ifconfig $IFACE up
fi
} }
function setup_wifi { function setup_wifi {

View File

@ -85,6 +85,8 @@ do
WIFI_INTERFACE=${1} WIFI_INTERFACE=${1}
wifi_interface_specified=1 wifi_interface_specified=1
write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE" write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE"
ifconfig $WIFI_INTERFACE down
ifconfig $WIFI_INTERFACE up
;; ;;
-t|--type) -t|--type)
shift shift
@ -140,6 +142,8 @@ if [ ! $wifi_interface_specified= ]; then
fi fi
WIFI_INTERFACE=$IFACE WIFI_INTERFACE=$IFACE
write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE" write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE"
ifconfig $WIFI_INTERFACE down
ifconfig $WIFI_INTERFACE up
fi fi
if [ $WIFI_DISABLE ]; then if [ $WIFI_DISABLE ]; then