Re: Allow userspace do something special on overtemp

From: Måns Rullgård
Date: Wed Aug 11 2004 - 04:19:48 EST


Arjan van de Ven <arjanv@xxxxxxxxxx> writes:

> On Wed, 2004-08-11 at 10:53, Pavel Machek wrote:
>> Hi!
>>
>> This patch cleans up thermal.c a bit, and adds possibility to react to
>> critical overtemp: it tries to call /sbin/overtemp, and only if that
>> fails calls /sbin/poweroff.
>
> why not call /sbin/hotplug ????

Good idea, then udev could create /dev/blowtorch so some other program
can do ioctl(SCSI_STOP) (or just run cdrecord dev=6,6,6 -eject).
Besides, it is called HOTplug for a reason.

Seriously, though, isn't hotplug supposed to handle plugging and
unplugging of hardware, rather than any random events detected by the
kernel?

--
Måns Rullgård
mru@xxxxxx

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/