X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blobdiff_plain/57c1ec2a69ca008713c377083bb4d0490e722a9a..e6f0833d90f5d6f11c8af184432210fe5c2efa93:/files/wifi.pl?ds=inline diff --git a/files/wifi.pl b/files/wifi.pl index d0f8156..a8cb6c3 100755 --- a/files/wifi.pl +++ b/files/wifi.pl @@ -3,7 +3,7 @@ use strict; use warnings FATAL => 'all'; -my $firmware_tarball = '/mnt/linux-firmware.tar'; +my $firmware_tarball = '/mnt/vendorfw/firmware.tar'; my @vfat_devices; for (`blkid`) { @@ -16,15 +16,8 @@ for my $dev (@vfat_devices) { system("mount -o ro $dev /mnt"); if (-f $firmware_tarball) { system("tar -C /lib/firmware/ -xf $firmware_tarball"); - system('rmmod brcmfmac'); - system('rmmod brcmutil'); - sleep(1); - system('modprobe brcmfmac'); - sleep(1); - system('rmmod brcmfmac'); - sleep(1); + unlink('/etc/modprobe.d/blacklist.conf'); system('modprobe brcmfmac'); } system('umount /mnt'); - }