You'd like have to hack the kernel.  There are hooks in the kernel to
execute very late in the game.  I even think there is one to do things
just before halt that you could use to power things off completely.
If this is a UPS, and the signal is several serial characters, you'd
have to poll the serial port rather than using interrupts (and you
should disable interrupts just in case).

Warner


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to