mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 22:05:11 +00:00
If the kernel is compiled w/o modules, /proc/modules does not
exist (Andras Bali). git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2623 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -1844,7 +1844,7 @@ use vars qw(%modules_list);
|
||||
|
||||
sub initialize_modules_list
|
||||
{
|
||||
open INPUTFILE, "/proc/modules" or die "Can't access /proc/modules!";
|
||||
open INPUTFILE, "/proc/modules" or return;
|
||||
while (<INPUTFILE>) {
|
||||
tr/_/-/;
|
||||
$modules_list{$1} = 1 if m/^(\S*)/;
|
||||
|
Reference in New Issue
Block a user