From: Thomas Glanzmann Date: Sun, 13 Feb 2022 20:17:00 +0000 (+0100) Subject: load wifi firmware X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/commitdiff_plain/152a1cd70263f4439e223eba97fdb18c4d1e0ec0?ds=sidebyside load wifi firmware --- diff --git a/files/wifi.sh b/files/wifi.sh new file mode 100755 index 0000000..800a39a --- /dev/null +++ b/files/wifi.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +for DEVICE in /dev/sda1; do + mount -o ro $DEVICE /mnt; + if test -f /mnt/linux-firmware.tar; then + tar -C /lib/firmware -xf /mnt/linux-firmware.tar + rmmod brcmfmac + rmmod brcmutil + sleep 1 + modprobe brcmfmac + sleep 1 + rmmod brcmfmac + sleep 1 + modprobe brcmfmac + umount /mnt + exit + fi + umount /mnt +done