install atheros wifi into image
This commit is contained in:
parent
500976b930
commit
0ae95110d2
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue