static const int RB_DISABLE_CAD = 0;
#define RB_POWER_OFF 0x4321fedc
static const int RB_AUTOBOOT = 0x01234567;
+#endif
#if __GNU_LIBRARY__ > 5
#include <sys/reboot.h>
/* Make it be sane */
tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD;
- tty.c_cflag |= HUPCL|CLOCAL;
+ tty.c_cflag |= CREAD|HUPCL|CLOCAL;
+
/* input modes */
tty.c_iflag = ICRNL | IXON | IXOFF;
kill(-1, SIGKILL);
sleep(1);
- /* run everything to be run at "ctrlaltdel" */
+ /* run everything to be run at "shutdown" */
run_actions(SHUTDOWN);
sync();