Date: Fri, 19 May 2000 13:53:04 -0600 From: Warner Losh <imp@village.org> To: Cillian Sharkey <cns@psn.ie> Cc: Doug White <dwhite@resnet.uoregon.edu>, hackers@FreeBSD.ORG Subject: Re: Post-shutdown hook for UPS shutdown? Message-ID: <200005191953.NAA03130@harmony.village.org> In-Reply-To: Your message of "Fri, 19 May 2000 18:05:25 BST." <20000519180525.A29385@psn.ie> References: <20000519180525.A29385@psn.ie> <20000519170026.A29241@psn.ie> <Pine.BSF.4.21.0005190929001.79434-100000@resnet.uoregon.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005191953.NAA03130>