Still don’t have a Meld Account?
Join now to be a part of the worlds largest embedded linux community!
Join Now!preventing halt for embedded linux
aapocketz - January 13, 2012
My embedded system running montavista CGE can perform a halt without poweroff via directly issuing the /sbin/halt command or by running shutdown -H or by running init 0 which actually calls /sbin/halt. The problem with this for me is my processor board is in an enclosure with a battery backup system and no direct way to force poweroff, there is no power button in the design. If somehow the halt gets called without the poweroff option, the system is hung until the battery dies.
Is there a way to prevent linux from issuing the halt command or alternatively always enforcing poweroff? I have tried removing permissions on halt, which prevents calling halt directly, but I still want to be able to reboot/poweroff or otherwise use /sbin/shutdown. I looked for a "nohalt" option in the kernel parameters but it doesn't appear to apply to x86_pentium4 architecture that I am using.
Here is more information on my environment:
MPL pip10 board
Montavista CGE 5.1 LSP 0704580.1 patch level 1160 x86_pentium4
