summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-10-20 06:14:29 +0000
committerphk <phk@FreeBSD.org>1994-10-20 06:14:29 +0000
commit05562654b1ced03f4a9353d2d65aede28ef0efec (patch)
tree0d84218b9e6732e7afff51fa5c97b8cbd7cf0d58
parentf252df1d0353c4375b7c74c174a0a1cd19e77262 (diff)
downloadFreeBSD-src-05562654b1ced03f4a9353d2d65aede28ef0efec.zip
FreeBSD-src-05562654b1ced03f4a9353d2d65aede28ef0efec.tar.gz
Just a safety measure for me and Paul.
-rw-r--r--sbin/sysinstall/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/sysinstall/main.c b/sbin/sysinstall/main.c
index 2548db8..fca953f 100644
--- a/sbin/sysinstall/main.c
+++ b/sbin/sysinstall/main.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id$
+ * $Id: main.c,v 1.2 1994/10/20 04:59:56 phk Exp $
*
*/
@@ -88,7 +88,7 @@ main(int argc, char **argv)
setjmp(jmp_restart);
- if (getenv("PAUL") || !access("/this_is_boot_flp",R_OK)) {
+ if (getenv("STAGE0") || !access("/this_is_boot_flp",R_OK)) {
stage0();
stage1();
/* XXX This is how stage one should output: */
@@ -98,9 +98,10 @@ main(int argc, char **argv)
mountpoint[1] = StrAlloc("/usr");
stage2();
- } else {
+ } else if (getenv("STAGE3)) {
stage3();
- }
+ } else {
+ fprintf(stderr,"Must setenv STAGE0 or STAGE3");
return 0;
}
OpenPOWER on IntegriCloud