]> cvs.zerfleddert.de Git - m1-debian/blobdiff - files/wifi.pl
Line in the wrong section spotted by Jostein Kjønigsen
[m1-debian] / files / wifi.pl
index dad4758959552c524f501a5d206cd3310e02837d..a8cb6c3e407b395e335d8f404b4fc6c1a6b475a9 100755 (executable)
@@ -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`) {
@@ -14,17 +14,10 @@ for (`blkid`) {
 
 for my $dev (@vfat_devices) {
         system("mount -o ro $dev /mnt");
-        if (test -f $firmware_tarball) {
+        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');
-
 }
Impressum, Datenschutz