From 1c5888562e09cb90b9bf5bf2cd26669cbeceda55 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Wed, 23 Mar 2022 20:42:24 +0000 Subject: [PATCH] fix wifi extraction --- files/wifi.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/files/wifi.sh b/files/wifi.sh index 800a39a..2459de9 100755 --- a/files/wifi.sh +++ b/files/wifi.sh @@ -1,9 +1,11 @@ #!/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 -- 2.39.5