|
@@ -13,7 +13,7 @@
|
|
|
# License
|
|
|
# =======
|
|
|
#
|
|
|
-# Copyright (C) 2015-2016 Bob Mottram <bob@freedombone.net>
|
|
|
+# Copyright (C) 2015-2018 Bob Mottram <bob@freedombone.net>
|
|
|
#
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
@@ -86,7 +86,7 @@ function setup_wifi_atheros {
|
|
|
return
|
|
|
fi
|
|
|
|
|
|
- atheros_drivers_file=drivers/ath9k_htc_driver_bbb.tar.gz
|
|
|
+ atheros_drivers_file=drivers/firmware-ath9k-htc.deb
|
|
|
if [ ! -f $atheros_drivers_file ]; then
|
|
|
if [ ! -f ~/freedombone/$atheros_drivers_file ]; then
|
|
|
return
|
|
@@ -96,20 +96,8 @@ function setup_wifi_atheros {
|
|
|
else
|
|
|
atheros_drivers_file=$(pwd)/$atheros_drivers_file
|
|
|
fi
|
|
|
- if [ ! -d /lib/firmware ]; then
|
|
|
- mkdir /lib/firmware
|
|
|
- if [ ! -d /lib/firmware ]; then
|
|
|
- return
|
|
|
- fi
|
|
|
- fi
|
|
|
- if [ -f /lib/firmware/htc_9271.fw ]; then
|
|
|
- return
|
|
|
- fi
|
|
|
- curr_dir=$(pwd)
|
|
|
- cd /lib/firmware
|
|
|
- tar -xzvf $atheros_drivers_file
|
|
|
+ dpkg -i $atheros_drivers_file
|
|
|
reset_usb_devices
|
|
|
- cd $curr_dir
|
|
|
update_wifi_adaptors
|
|
|
if [ $IFACE ]; then
|
|
|
wpa_action ${IFACE} stop
|