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

install atheros wifi into image

parent 500976b9
No related branches found
No related tags found
No related merge requests found
......@@ -314,6 +314,21 @@ continue_installation() {
fi
}
atheros_wifi() {
firmware_filename="open-ath9k-htc-firmware_1.3-1_all.deb"
firmware_hash='5fea58ffefdf0ef15b504db7fbe3bc078c03e0d927bba64085e4b6f2546102f5'
firmware_url="http://us.archive.trisquel.info/trisquel/pool/main/o/open-ath9k-htc-firmware/$firmware_filename"
firmware_tempfile="/tmp/$firmware_filename"
wget "$firmware_url" -O "$rootdir$firmware_tempfile"
downloaded_firmware_hash=$(sha256sum "$rootdir$firmware_tempfile" | awk -F ' ' '{print $1}')
if [[ "$downloaded_firmware_hash" == "$firmware_hash" ]]; then
chroot "$rootdir" dpkg -i "$firmware_tempfile"
else
echo 'WARNING: Atheros Wifi firmware hash does not match. The driver has not been installed.'
fi
}
# Set to true/false to control if eatmydata is used during build
use_eatmydata=true
......@@ -424,6 +439,7 @@ configure_networking
admin_user_sudo
create_generic_image
continue_installation
atheros_wifi
cd /
echo $"info: killing leftover processes in chroot"
......
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