|
@@ -36,9 +36,6 @@ WIFI_PASSPHRASE=
|
36
|
36
|
WIFI_HOTSPOT='no'
|
37
|
37
|
WIFI_NETWORKS_FILE=~/${PROJECT_NAME}-wifi.cfg
|
38
|
38
|
|
39
|
|
-# repo for atheros AR9271 wifi driver
|
40
|
|
-ATHEROS_WIFI_REPO="https://github.com/qca/open-ath9k-htc-firmware.git"
|
41
|
|
-
|
42
|
39
|
function default_network_config {
|
43
|
40
|
echo '# This file describes the network interfaces available on your system' > /etc/network/interfaces
|
44
|
41
|
echo '# and how to activate them. For more information, see interfaces(5).' >> /etc/network/interfaces
|
|
@@ -166,48 +163,7 @@ function install_atheros_wifi {
|
166
|
163
|
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
|
167
|
164
|
return
|
168
|
165
|
fi
|
169
|
|
- if [ $INSTALLING_ON_BBB != "yes" ]; then
|
170
|
|
- return
|
171
|
|
- fi
|
172
|
|
- if [[ $ENABLE_BATMAN != "yes" ]]; then
|
173
|
|
- return
|
174
|
|
- fi
|
175
|
|
- if [ -d $INSTALL_DIR/open-ath9k-htc-firmware ]; then
|
176
|
|
- return
|
177
|
|
- fi
|
178
|
|
- # have drivers already been installed ?
|
179
|
|
- if [ -f /lib/firmware/htc_9271.fw ]; then
|
180
|
|
- return
|
181
|
|
- fi
|
182
|
|
- apt-get -yq install build-essential cmake git m4 texinfo
|
183
|
|
- if [ ! -d $INSTALL_DIR ]; then
|
184
|
|
- mkdir -p $INSTALL_DIR
|
185
|
|
- fi
|
186
|
|
- cd $INSTALL_DIR
|
187
|
|
- if [ ! -d $INSTALL_DIR/open-ath9k-htc-firmware ]; then
|
188
|
|
- function_check git_clone
|
189
|
|
- git_clone $ATHEROS_WIFI_REPO $INSTALL_DIR/open-ath9k-htc-firmware
|
190
|
|
- if [ ! "$?" = "0" ]; then
|
191
|
|
- rm -rf $INSTALL_DIR/open-ath9k-htc-firmware
|
192
|
|
- exit 74283
|
193
|
|
- fi
|
194
|
|
- fi
|
195
|
|
- cd $INSTALL_DIR/open-ath9k-htc-firmware
|
196
|
|
- git checkout 1.4.0
|
197
|
|
- make toolchain
|
198
|
|
- if [ ! "$?" = "0" ]; then
|
199
|
|
- rm -rf $INSTALL_DIR/open-ath9k-htc-firmware
|
200
|
|
- exit 24820
|
201
|
|
- fi
|
202
|
|
- make firmware
|
203
|
|
- if [ ! "$?" = "0" ]; then
|
204
|
|
- rm -rf $INSTALL_DIR/open-ath9k-htc-firmware
|
205
|
|
- exit 63412
|
206
|
|
- fi
|
207
|
|
- cp target_firmware/*.fw /lib/firmware/
|
208
|
|
- if [ ! "$?" = "0" ]; then
|
209
|
|
- exit 74681
|
210
|
|
- fi
|
|
166
|
+ apt-get -yq install open-ath9k-htc-firmware
|
211
|
167
|
mark_completed $FUNCNAME
|
212
|
168
|
}
|
213
|
169
|
|