]>
git.proxmox.com Git - pve-kernel.git/blob - debian/scripts/find-firmware.pl
7 die "no directory to scan" if !$dir;
9 die "no such directory" if ! -d
$dir;
11 die "strange directory name: $dir" if $dir !~ m
|^(.*/)?(\d+.\d+.\d+\-\d+\-pve)(/+)?
$|;
15 open(TMP
, "find '$dir' -name '*.ko'|");
16 while (defined(my $fn = <TMP
>)) {
19 $relfn =~ s
|^$dir/*||;
21 my $cmd = "/sbin/modinfo -F firmware '$fn'";
23 while (defined(my $fw = <MOD
>)) {