2
0
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:
Jean Delvare
2004-07-02 22:01:17 +00:00
parent 13493f1bc1
commit 49db6d7a10

View File

@@ -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*)/;