Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 May 2000 13:54:20 -0600
From:      Warner Losh <imp@village.org>
Cc:        Cillian Sharkey <cns@psn.ie>, Doug White <dwhite@resnet.uoregon.edu>, hackers@FreeBSD.ORG
Subject:   Re: Post-shutdown hook for UPS shutdown? 
Message-ID:  <200005191954.NAA03169@harmony.village.org>
In-Reply-To: Your message of "Fri, 19 May 2000 13:53:04 MDT." <200005191953.NAA03130@harmony.village.org> 
References:  <200005191953.NAA03130@harmony.village.org>  <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
In message <200005191953.NAA03130@harmony.village.org> 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 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?200005191954.NAA03169>