]> git.zerfleddert.de Git - m1-debian/commitdiff
load wifi firmware
authorThomas Glanzmann <thomas@glanzmann.de>
Sun, 13 Feb 2022 20:17:00 +0000 (21:17 +0100)
committerThomas Glanzmann <thomas@glanzmann.de>
Sun, 13 Feb 2022 20:17:00 +0000 (21:17 +0100)
files/wifi.sh [new file with mode: 0755]

diff --git a/files/wifi.sh b/files/wifi.sh
new file mode 100755 (executable)
index 0000000..800a39a
--- /dev/null
@@ -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
Impressum, Datenschutz