Add lowgtmp("~", "reboot", "~"); to stock init code, from Christoph Robitsch
authorRick Macklem <root@snowhite.cis.uoguelph.ca>
Tue, 13 Jul 1993 16:37:57 +0000 (16:37 +0000)
committerRick Macklem <root@snowhite.cis.uoguelph.ca>
Tue, 13 Jul 1993 16:37:57 +0000 (16:37 +0000)
sbin/init/init.c

index fd36c16..a8bbd45 100644 (file)
@@ -211,6 +211,7 @@ top:
                        /* if we are about to be rebooted, then wait for it */
                        if (WIFSIGNALED(status) && WTERMSIG(status) == SIGKILL)
                                pause();
                        /* if we are about to be rebooted, then wait for it */
                        if (WIFSIGNALED(status) && WTERMSIG(status) == SIGKILL)
                                pause();
+                       logwtmp("~", "reboot", "");
                } else  { status = 1;  sflag = 1; goto top; }
        }
        signal(SIGTERM, sterm);
                } else  { status = 1;  sflag = 1; goto top; }
        }
        signal(SIGTERM, sterm);