An archive of nntp://inn.qnx.com/bm45iq$m42$1@inn.qnx.com which had now gone non-public ...
$Keywords: QNX qnxrtp Momentics shutdown ATX power supply APM $
From: <kabe*sra-tohoku.co.jp> Newsgroups: qdn.public.qnxrtp.x86 Subject: [SOURCE] shutdownx 1.0: alternate shutdown util with APM poweroff Date: Fri, 10 Oct 2003 02:39:17 +0900 Organization: messy enough to have no footspace Lines: 1388 Message-ID: <bm45iq$m42$1@inn.qnx.com> X-Complaints-To: usenet@inn.qnx.com NNTP-Posting-Date: 9 Oct 2003 17:23:38 GMT X-Newsreader: mnews [version 1.22PL5] 2002-11-27(Wed) Xref: vega.sra-tohoku.co.jp qdn.public.qnxrtp.x86:283
Stock "shutdown" command can't power off the ATX supply. I tried numerous things to hook APM BIOS calls during shutdown with no success.
So I whipped up a custom shutdown command which have some expandability, and builtin APM power-off capability. I believe the shutdown sequence resembles that of the stock shutdown.
Note: you can't replace phshutdown, but it seems to work from Photon without serious screws.
-- kabe