Skip to content

Commit

Permalink
Detect that bininst has finished and go straight into the new system.
Browse files Browse the repository at this point in the history
Reviewed by: phk
  • Loading branch information
jkh authored and jkh committed Nov 8, 1994
1 parent b280c1d commit f260055
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions sbin/sysinstall/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
* $Id: exec.c,v 1.4 1994/10/26 05:40:59 phk Exp $
* $Id: exec.c,v 1.5 1994/10/29 10:01:32 phk Exp $
*
*/

Expand Down Expand Up @@ -62,6 +62,7 @@ exec(int magic, char *cmd, char *args, ...)
close(debug_fd);
break;
case 2:
case 3:
close(debug_fd);
default:
break;
Expand All @@ -72,7 +73,8 @@ exec(int magic, char *cmd, char *args, ...)

while ((w = wait(&status)) != pid && w != -1)
;

if (w == 20 && magic == 3) /* special case for bininst */
execl("/sbin/init", "/sbin/init", 0);
if (w == -1)
Fatal("Child process %s terminated abnormally\n", cmd);
return(status);
Expand Down
4 changes: 2 additions & 2 deletions sbin/sysinstall/stage5.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
* $Id: stage5.c,v 1.12 1994/11/07 13:48:53 jkh Exp $
* $Id: stage5.c,v 1.13 1994/11/08 03:41:42 jkh Exp $
*
*/

Expand Down Expand Up @@ -45,6 +45,6 @@ stage5()
if (exec_sh)
exec (2,"/stand/sh","/stand/-sh", 0);
else
exec (2,"/stand/bininst","/stand/-bininst", 0);
exec (3,"/stand/bininst","/stand/-bininst", 0);
}
}

0 comments on commit f260055

Please sign in to comment.