|
@@ -13,7 +13,7 @@
|
13
|
13
|
# License
|
14
|
14
|
# =======
|
15
|
15
|
#
|
16
|
|
-# Copyright (C) 2015-2016 Bob Mottram <bob@freedombone.net>
|
|
16
|
+# Copyright (C) 2015-2018 Bob Mottram <bob@freedombone.net>
|
17
|
17
|
#
|
18
|
18
|
# This program is free software: you can redistribute it and/or modify
|
19
|
19
|
# it under the terms of the GNU Affero General Public License as published by
|
|
@@ -86,7 +86,7 @@ function setup_wifi_atheros {
|
86
|
86
|
return
|
87
|
87
|
fi
|
88
|
88
|
|
89
|
|
- atheros_drivers_file=drivers/ath9k_htc_driver_bbb.tar.gz
|
|
89
|
+ atheros_drivers_file=drivers/firmware-ath9k-htc.deb
|
90
|
90
|
if [ ! -f $atheros_drivers_file ]; then
|
91
|
91
|
if [ ! -f ~/freedombone/$atheros_drivers_file ]; then
|
92
|
92
|
return
|
|
@@ -96,20 +96,8 @@ function setup_wifi_atheros {
|
96
|
96
|
else
|
97
|
97
|
atheros_drivers_file=$(pwd)/$atheros_drivers_file
|
98
|
98
|
fi
|
99
|
|
- if [ ! -d /lib/firmware ]; then
|
100
|
|
- mkdir /lib/firmware
|
101
|
|
- if [ ! -d /lib/firmware ]; then
|
102
|
|
- return
|
103
|
|
- fi
|
104
|
|
- fi
|
105
|
|
- if [ -f /lib/firmware/htc_9271.fw ]; then
|
106
|
|
- return
|
107
|
|
- fi
|
108
|
|
- curr_dir=$(pwd)
|
109
|
|
- cd /lib/firmware
|
110
|
|
- tar -xzvf $atheros_drivers_file
|
|
99
|
+ dpkg -i $atheros_drivers_file
|
111
|
100
|
reset_usb_devices
|
112
|
|
- cd $curr_dir
|
113
|
101
|
update_wifi_adaptors
|
114
|
102
|
if [ $IFACE ]; then
|
115
|
103
|
wpa_action ${IFACE} stop
|