Skip to content
Snippets Groups Projects
Commit d64782d2 authored by Bob Mottram's avatar Bob Mottram
Browse files

Bring up wifi interface

parent 882ea66e
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment