From 152a1cd70263f4439e223eba97fdb18c4d1e0ec0 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Sun, 13 Feb 2022 21:17:00 +0100 Subject: [PATCH] load wifi firmware --- files/wifi.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 files/wifi.sh 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 -- 2.39.5