mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
Even better reporting for unknown adapters
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@826 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
8b1076786d
commit
e72953e4fc
1 file changed
+3
-1
@@ -1905,6 +1905,8 @@ sub generate_modprobes
|
||||
my ($dev_nr,$type,$adap,$algo) = /^i2c-(\S+)\s+(\S+)\s+(.*?)\s*\t\s*(.*?)\s+$/;
|
||||
next if ($type eq "dummy");
|
||||
$adapters[$dev_nr]->{driver} = find_adapter_driver($adap,$algo);
|
||||
$adapters[$dev_nr]->{adapname} = $adap;
|
||||
$adapters[$dev_nr]->{algoname} = $algo;
|
||||
}
|
||||
close INPUTFILE;
|
||||
|
||||
@@ -1933,7 +1935,7 @@ sub generate_modprobes
|
||||
for ($i = 0; $i < $nr; $i++) {
|
||||
foreach $adap (@adapters) {
|
||||
if ($adap->{driver} eq "UNKNOWN") {
|
||||
$modprobes .= "# modprobe some unknown, currently loaded adapter(s)";
|
||||
$modprobes .= "# modprobe unknown adapter ".$adap->{adapname}." using ". $adap->{algoname}."\n";
|
||||
} else {
|
||||
$modprobes .= "modprobe $adap->{driver}\n" if (defined($adap->{nr_later}) and $adap->{nr_later} == $i) and not $modprobes =~ /modprobe $adap->{driver}\n/;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user