aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1999-04-28 10:51:01 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1999-04-28 10:51:01 +0000
commit78e2e8ea352da2ef808bd8af1f04fb1c7f7e1225 (patch)
treed016e23a99dc3dc754abdbe126c74332aa3dde94
parenta44388523d330f74e1d59928d4cf6486c1650fd0 (diff)
Notes
-rw-r--r--release/sysinstall/install.c21
-rw-r--r--usr.sbin/sade/install.c21
-rw-r--r--usr.sbin/sysinstall/install.c21
3 files changed, 18 insertions, 45 deletions
diff --git a/release/sysinstall/install.c b/release/sysinstall/install.c
index a8a961e54d006..703a760972e38 100644
--- a/release/sysinstall/install.c
+++ b/release/sysinstall/install.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: install.c,v 1.231 1999/04/24 01:53:54 jkh Exp $
+ * $Id: install.c,v 1.232 1999/04/27 14:33:25 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -752,21 +752,12 @@ installFixupBin(dialogMenuItem *self)
"to it. See the debug screen (ALT-F2) for details.");
}
else {
- if (!file_readable("/boot/loader.rc")) {
- FILE *fp;
+ FILE *fp;
- if ((fp = fopen("/boot/loader.rc", "w")) != NULL) {
- fprintf(fp, "load /kernel\n");
- fprintf(fp, "load -t userconfig_script /boot/kernel.conf\n");
- fprintf(fp, "autoboot 5\n");
- fclose(fp);
- }
- }
- else {
- msgConfirm("You already have a /boot/loader.rc file so I won't touch it.\n"
- "You will need to add a: load -t userconfig_script /boot/kernel.conf\n"
- "line to your /boot/loader.rc before your saved kernel changes\n"
- "(if any) can go into effect.");
+ if ((fp = fopen("/boot/loader.conf", "a")) != NULL) {
+ fprintf(fp, "# -- sysinstall generated deltas -- #\n");
+ fprintf(fp, "userconfig_script_load=\"YES\"\n");
+ fclose(fp);
}
}
#endif
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index a8a961e54d006..703a760972e38 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: install.c,v 1.231 1999/04/24 01:53:54 jkh Exp $
+ * $Id: install.c,v 1.232 1999/04/27 14:33:25 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -752,21 +752,12 @@ installFixupBin(dialogMenuItem *self)
"to it. See the debug screen (ALT-F2) for details.");
}
else {
- if (!file_readable("/boot/loader.rc")) {
- FILE *fp;
+ FILE *fp;
- if ((fp = fopen("/boot/loader.rc", "w")) != NULL) {
- fprintf(fp, "load /kernel\n");
- fprintf(fp, "load -t userconfig_script /boot/kernel.conf\n");
- fprintf(fp, "autoboot 5\n");
- fclose(fp);
- }
- }
- else {
- msgConfirm("You already have a /boot/loader.rc file so I won't touch it.\n"
- "You will need to add a: load -t userconfig_script /boot/kernel.conf\n"
- "line to your /boot/loader.rc before your saved kernel changes\n"
- "(if any) can go into effect.");
+ if ((fp = fopen("/boot/loader.conf", "a")) != NULL) {
+ fprintf(fp, "# -- sysinstall generated deltas -- #\n");
+ fprintf(fp, "userconfig_script_load=\"YES\"\n");
+ fclose(fp);
}
}
#endif
diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c
index a8a961e54d006..703a760972e38 100644
--- a/usr.sbin/sysinstall/install.c
+++ b/usr.sbin/sysinstall/install.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: install.c,v 1.231 1999/04/24 01:53:54 jkh Exp $
+ * $Id: install.c,v 1.232 1999/04/27 14:33:25 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -752,21 +752,12 @@ installFixupBin(dialogMenuItem *self)
"to it. See the debug screen (ALT-F2) for details.");
}
else {
- if (!file_readable("/boot/loader.rc")) {
- FILE *fp;
+ FILE *fp;
- if ((fp = fopen("/boot/loader.rc", "w")) != NULL) {
- fprintf(fp, "load /kernel\n");
- fprintf(fp, "load -t userconfig_script /boot/kernel.conf\n");
- fprintf(fp, "autoboot 5\n");
- fclose(fp);
- }
- }
- else {
- msgConfirm("You already have a /boot/loader.rc file so I won't touch it.\n"
- "You will need to add a: load -t userconfig_script /boot/kernel.conf\n"
- "line to your /boot/loader.rc before your saved kernel changes\n"
- "(if any) can go into effect.");
+ if ((fp = fopen("/boot/loader.conf", "a")) != NULL) {
+ fprintf(fp, "# -- sysinstall generated deltas -- #\n");
+ fprintf(fp, "userconfig_script_load=\"YES\"\n");
+ fclose(fp);
}
}
#endif