]> git.zerfleddert.de Git - m1-debian/commitdiff
fix wifi extraction
authorThomas Glanzmann <thomas@glanzmann.de>
Wed, 23 Mar 2022 20:42:24 +0000 (20:42 +0000)
committerThomas Glanzmann <thomas@glanzmann.de>
Wed, 23 Mar 2022 20:42:24 +0000 (20:42 +0000)
files/wifi.sh

index 800a39addf48c81a0cbc3a3863f95d1dd0565102..2459de9223747479d7c0c9efae3e15bb2b811118 100755 (executable)
@@ -1,9 +1,11 @@
 #!/bin/sh
 
 #!/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
+FIRMWARE=/mnt/vendorfw/firmware.tar
+
+for DEVICE in /dev/nvme0n1p4 /dev/nvme0n1p5 /dev/nvme0n1p6; do
+        mount -o ro -t vfat $DEVICE /mnt;
+        if test -f ${FIRMWARE}; then
+                tar -C /lib/firmware -xf ${FIRMWARE}
                 rmmod brcmfmac
                 rmmod brcmutil
                 sleep 1
                 rmmod brcmfmac
                 rmmod brcmutil
                 sleep 1
Impressum, Datenschutz