I am playing around with automated shutdown and am trying to
use the ctrl_alt_del() routine to achieve the halt. If this
routine is entered it checks a global variable C_A_D which by
default is set on. However, during startup of my SuSE system
it is turned off (via syscall sys_reboot). If I force it on
and drive the routine I get a system restart without any
orderly shutdown such that my filesystems need checking etc.
What options do I have to change this behavior (a call to
sys_reboot with the correct parameters can cause halt or
power-off actions to be taken but are there more inventive
things I can do)?