]>
cvs.zerfleddert.de Git - m1-debian/blob - files/wifi.pl
4 use warnings FATAL
=> 'all';
6 my $firmware_tarball = '/mnt/vendorfw/firmware.tar';
10 if (/^([^:]+):.*vfat/) {
11 push @vfat_devices, $1;
15 for my $dev (@vfat_devices) {
16 system("mount -o ro $dev /mnt");
17 if (-f
$firmware_tarball) {
18 system("tar -C /lib/firmware/ -xf $firmware_tarball");
19 system('rmmod brcmfmac');
20 system('rmmod brcmutil');
22 system('modprobe brcmfmac');
24 system('rmmod brcmfmac');
26 system('modprobe brcmfmac');
28 system('umount /mnt');