/sbin/init did not set some internal flags correctly (Reboot, drain)
This caused it to not execute /etc/rc again if the system was brought down
to singleuser and the back up again. It also tried to start multiuser mode
when you tried halt or reboot in singleuser (when the singleuser shell was
terminated by halt/reboot).
AUTHOR: Christoph Robitschko (chmr@edvz.tu-graz.ac.at)
386BSD-Patchkit: patch00022
*
* PATCHES MAGIC LEVEL PATCH THAT GOT US HERE
* -------------------- ----- ----------------------
*
* PATCHES MAGIC LEVEL PATCH THAT GOT US HERE
* -------------------- ----- ----------------------
- * CURRENT PATCH LEVEL: 1 00014
+ * CURRENT PATCH LEVEL: 2 00022
* -------------------- ----- ----------------------
*
* -------------------- ----- ----------------------
*
+ * 31 Jul 92 Christoph Robitschko Fixed run level change code
* 04 Sep 92 Paul Kranenburg Fixed kill -1 and kill -15 for
* daemons started from /etc/rc.
*/
* 04 Sep 92 Paul Kranenburg Fixed kill -1 and kill -15 for
* daemons started from /etc/rc.
*/
execl("/bin/sh", "sh", "/etc/rc", Reboot, (char *)0);
_exit(127);
}
execl("/bin/sh", "sh", "/etc/rc", Reboot, (char *)0);
_exit(127);
}
+ Reboot = 0; /* 31 Jul 92*/
while(wait(&status) != pid);
/* if we are about to be rebooted, then wait for it */
while(wait(&status) != pid);
/* if we are about to be rebooted, then wait for it */
_exit(127);
}
while(wait(&status) != pid)
_exit(127);
}
while(wait(&status) != pid)
+ while(drain) /* 31 Jul 92*/
+ pause();