Created
December 29, 2022 23:23
-
-
Save DaneGardner/1f1791e6e5439e3d5bb4ffb79d4c408a to your computer and use it in GitHub Desktop.
Install RTL8761B drivers in LibreElec OS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ex | |
image=SYSTEM | |
sdcard=/media/${USER}/LIBREELEC | |
path=squashfs-root | |
rm -rf ${image} ${path} | |
cp ${sdcard}/${image} ${image} | |
unsquashfs ${image} | |
# drivers from https://cdn.shopify.com/s/files/1/0249/2891/1420/files/20201202_BH456A_driverforLinux-1_0929.7z | |
cp rtl8761b_fw.bin ${path}/usr/lib/kernel-overlays/base/lib/firmware/rtl_bt/rtl8761b_fw.bin | |
cp rtl8761b_config.bin ${path}/usr/lib/kernel-overlays/base/lib/firmware/rtl_bt/rtl8761b_config.bin | |
chown -R 0:0 ${path}/ | |
mksquashfs ${path} ${image} -noappend -comp zstd -Xcompression-level 19 -b 1048576 | |
md5sum ${image} | sudo tee ${sdcard}/${image}.md5 | |
mv ${image} ${sdcard}/${image} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment