In message <[EMAIL PROTECTED]> Warner Losh writes:
: 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).
Actually, forget what I said. Mike smith's way is much cleaner.
Assuming that the batteries have enough juice in them to do the
reboot.
Warner
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message