2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

print some help and exit if no sensors found.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1640 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker
2002-11-21 23:43:05 +00:00
parent 990c9d733a
commit 08fad16d22

View File

@@ -1042,7 +1042,7 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect
isa_detect => sub { ipmi_smic_detect @_ },
},
{
name => "SMart Battery",
name => "Smart Battery",
driver => "smartbatt",
i2c_addrs => [0x0b],
i2c_detect => sub { smartbatt_detect @_},
@@ -3201,6 +3201,18 @@ sub main
}
}
if(! @chips_detected) {
print "\n Sorry, no chips were detected.\n",
" Either your sensors are not supported, or they are\n",
" connected to an I2C bus adapter that we do not support.\n",
" See doc/FAQ, doc/lm_sensors-FAQ.html, or\n",
" http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/doc/lm_sensors-FAQ.html\n",
" (FAQ #4.24.3) for further information.\n",
" If you find out what chips are on your board, see\n",
" http://secure.netroedge.com/~lm78/newdrivers.html for driver status.\n";
exit;
}
print "\n Now follows a summary of the probes I have just done.\n";
print " Just press ENTER to continue: ";
<STDIN>;