Can you guide me to information, how to do it? My experiences with kernel programming are only few small modifications in drivers.
This was target of my previous question, "what busybox halt does?", in meaning how is realised connection between the command and hardware on a normal system, like PC. Thank you. Jakub Ladman Dne pondělí 04 září 2006 20:25 Vladimir Pouzanov napsal(a): > 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
