]>
Commit | Line | Data |
---|---|---|
152a1cd7 TG |
1 | #!/bin/sh |
2 | ||
1c588856 TG |
3 | FIRMWARE=/mnt/vendorfw/firmware.tar |
4 | ||
5 | for DEVICE in /dev/nvme0n1p4 /dev/nvme0n1p5 /dev/nvme0n1p6; do | |
6 | mount -o ro -t vfat $DEVICE /mnt; | |
7 | if test -f ${FIRMWARE}; then | |
8 | tar -C /lib/firmware -xf ${FIRMWARE} | |
152a1cd7 TG |
9 | rmmod brcmfmac |
10 | rmmod brcmutil | |
11 | sleep 1 | |
12 | modprobe brcmfmac | |
13 | sleep 1 | |
14 | rmmod brcmfmac | |
15 | sleep 1 | |
16 | modprobe brcmfmac | |
17 | umount /mnt | |
18 | exit | |
19 | fi | |
20 | umount /mnt | |
21 | done |