int event = 0;
char *msg = NULL;
+#ifndef DISABLE_INIT
switch(signal) {
case SIGINT:
case SIGTERM:
msg = "poweroff";
break;
}
+#endif
DEBUG(1, "Triggering %s\n", msg);
if (event)
sigaction(SIGHUP, &sa_dummy, NULL);
sigaction(SIGKILL, &sa_dummy, NULL);
sigaction(SIGSTOP, &sa_dummy, NULL);
+#ifndef DISABLE_INIT
reboot(RB_DISABLE_CAD);
+#endif
}