1 --- sysvinit-2.78/src/halt.c.halt Wed Apr 19 15:48:23 2000
2 +++ sysvinit-2.78/src/halt.c Wed Apr 19 15:55:03 2000
4 * See if we are in runlevel 0 or 6.
7 - if (c != '0' && c != '6')
8 + if (c != '0' && c != '6') {
12 + file = strdup("/poweroff");
14 + file = strdup("/halt");
16 + close(open(file, O_CREAT|O_RDWR, 0644));
19 do_shutdown(do_reboot ? "-r" : "-h", tm);