Maybe a pure kernel-space solution is better in this case? You can probably hook your shutdown code to PM system.
On 9/4/06, Jakub Ladman <[EMAIL PROTECTED]> wrote:
Hi there What does busybox halt? I have my own C code which opens a device node and writes into a register using ioctl. This performs switching the power supply off. I have copied it as /sbin/shutdown. But busybox init does not run it after halt command in shell. If i write ::shutdown:/sbin/shutdown into inittab, it makes the power off before unmountig disks and before terminating applications. If i write ::shutdown:/sbin/shutdown& and append delay into C code, SIGTERM or SIGKILL ends my program and power off never comes. Can you help me? Jakub Ladman -- [email protected] mailing list
-- Sincerely, Vladimir "Farcaller" Pouzanov http://www.hackndev.com -- [email protected] mailing list
