From 950e94d56ac27acfba9809012119d1f5ff89d5a9 Mon Sep 17 00:00:00 2001 From: jkh Date: Mon, 28 Apr 1997 06:15:49 +0000 Subject: [PATCH] YAMF22 --- release/sysinstall/config.c | 19 ++++++++++++++----- release/sysinstall/system.c | 6 +++++- usr.sbin/sade/config.c | 19 ++++++++++++++----- usr.sbin/sade/system.c | 6 +++++- usr.sbin/sysinstall/config.c | 19 ++++++++++++++----- usr.sbin/sysinstall/system.c | 6 +++++- 6 files changed, 57 insertions(+), 18 deletions(-) diff --git a/release/sysinstall/config.c b/release/sysinstall/config.c index 3cb6625ac972..b9abd111c60f 100644 --- a/release/sysinstall/config.c +++ b/release/sysinstall/config.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: config.c,v 1.86 1997/03/12 02:31:28 jkh Exp $ + * $Id: config.c,v 1.87 1997/04/20 16:46:25 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -503,10 +503,21 @@ configXFree86(dialogMenuItem *self) else { int i; - if (directory_exists("/dist/CDE") && !msgYesNo("Would you like to install the CDE desktop package now?")) { + dialog_clear_norefresh(); + msgNotify("Running AcceleratedX 3.1 installation procedure, please wait."); + if ((i = vsystem("/usr/X11R6/lib/X11/AcceleratedX/bin/Xinstall"))) { + dialog_clear_norefresh(); + msgConfirm("Installation procedure failed, error code %d! Please report\n" + "error to Walnut Creek CDROM tech support (either send email\n" + "to support@cdrom.com or call +1 510 603 1234). Thank you!", i); + return DITEM_FAILURE | DITEM_RESTORE; + } + if (directory_exists("/dist/CDE")) { dialog_clear_norefresh(); msgNotify("Running CDE installation - please wait (this may take awhile!)."); dialog_clear(); + clear(); + refresh(); i = systemExecute("(cd /dist/CDE; sh Install)"); dialog_clear(); if (i) { @@ -516,10 +527,8 @@ configXFree86(dialogMenuItem *self) "to it will actually be /cdrom/CDE/dtinstall when you run it later).\n"); } } - - dialog_clear_norefresh(); - msgNotify("Running AcceleratedX 3.1 installation procedure, please wait."); if ((i = vsystem("/usr/X11R6/lib/X11/AcceleratedX/bin/Xinstall"))) { + dialog_clear_norefresh(); msgConfirm("Installation procedure failed, error code %d! Please report\n" "error to Walnut Creek CDROM tech support (either send email\n" "to support@cdrom.com or call +1 510 603 1234). Thank you!", i); diff --git a/release/sysinstall/system.c b/release/sysinstall/system.c index e5dc4a99f145..493bf60e7aa8 100644 --- a/release/sysinstall/system.c +++ b/release/sysinstall/system.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id$ + * $Id: system.c,v 1.77 1997/02/22 14:12:20 peter Exp $ * * Jordan Hubbard * @@ -20,6 +20,8 @@ #include #include #include +#include +#include #include #include #include @@ -84,6 +86,8 @@ systemInitialize(int argc, char **argv) setenv("PATH", "/stand:/bin:/sbin:/usr/sbin:/usr/bin:/mnt/bin:/mnt/sbin:/mnt/usr/sbin:/mnt/usr/bin:/usr/X11R6/bin", 1); setbuf(stdin, 0); setbuf(stderr, 0); + /* Remount root read/write in case it's R/O */ + mount(MOUNT_MFS, "/", MNT_WANTRDWR | MNT_UPDATE, NULL); } else { char hname[256]; diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index 3cb6625ac972..b9abd111c60f 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/config.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: config.c,v 1.86 1997/03/12 02:31:28 jkh Exp $ + * $Id: config.c,v 1.87 1997/04/20 16:46:25 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -503,10 +503,21 @@ configXFree86(dialogMenuItem *self) else { int i; - if (directory_exists("/dist/CDE") && !msgYesNo("Would you like to install the CDE desktop package now?")) { + dialog_clear_norefresh(); + msgNotify("Running AcceleratedX 3.1 installation procedure, please wait."); + if ((i = vsystem("/usr/X11R6/lib/X11/AcceleratedX/bin/Xinstall"))) { + dialog_clear_norefresh(); + msgConfirm("Installation procedure failed, error code %d! Please report\n" + "error to Walnut Creek CDROM tech support (either send email\n" + "to support@cdrom.com or call +1 510 603 1234). Thank you!", i); + return DITEM_FAILURE | DITEM_RESTORE; + } + if (directory_exists("/dist/CDE")) { dialog_clear_norefresh(); msgNotify("Running CDE installation - please wait (this may take awhile!)."); dialog_clear(); + clear(); + refresh(); i = systemExecute("(cd /dist/CDE; sh Install)"); dialog_clear(); if (i) { @@ -516,10 +527,8 @@ configXFree86(dialogMenuItem *self) "to it will actually be /cdrom/CDE/dtinstall when you run it later).\n"); } } - - dialog_clear_norefresh(); - msgNotify("Running AcceleratedX 3.1 installation procedure, please wait."); if ((i = vsystem("/usr/X11R6/lib/X11/AcceleratedX/bin/Xinstall"))) { + dialog_clear_norefresh(); msgConfirm("Installation procedure failed, error code %d! Please report\n" "error to Walnut Creek CDROM tech support (either send email\n" "to support@cdrom.com or call +1 510 603 1234). Thank you!", i); diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c index e5dc4a99f145..493bf60e7aa8 100644 --- a/usr.sbin/sade/system.c +++ b/usr.sbin/sade/system.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id$ + * $Id: system.c,v 1.77 1997/02/22 14:12:20 peter Exp $ * * Jordan Hubbard * @@ -20,6 +20,8 @@ #include #include #include +#include +#include #include #include #include @@ -84,6 +86,8 @@ systemInitialize(int argc, char **argv) setenv("PATH", "/stand:/bin:/sbin:/usr/sbin:/usr/bin:/mnt/bin:/mnt/sbin:/mnt/usr/sbin:/mnt/usr/bin:/usr/X11R6/bin", 1); setbuf(stdin, 0); setbuf(stderr, 0); + /* Remount root read/write in case it's R/O */ + mount(MOUNT_MFS, "/", MNT_WANTRDWR | MNT_UPDATE, NULL); } else { char hname[256]; diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c index 3cb6625ac972..b9abd111c60f 100644 --- a/usr.sbin/sysinstall/config.c +++ b/usr.sbin/sysinstall/config.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: config.c,v 1.86 1997/03/12 02:31:28 jkh Exp $ + * $Id: config.c,v 1.87 1997/04/20 16:46:25 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -503,10 +503,21 @@ configXFree86(dialogMenuItem *self) else { int i; - if (directory_exists("/dist/CDE") && !msgYesNo("Would you like to install the CDE desktop package now?")) { + dialog_clear_norefresh(); + msgNotify("Running AcceleratedX 3.1 installation procedure, please wait."); + if ((i = vsystem("/usr/X11R6/lib/X11/AcceleratedX/bin/Xinstall"))) { + dialog_clear_norefresh(); + msgConfirm("Installation procedure failed, error code %d! Please report\n" + "error to Walnut Creek CDROM tech support (either send email\n" + "to support@cdrom.com or call +1 510 603 1234). Thank you!", i); + return DITEM_FAILURE | DITEM_RESTORE; + } + if (directory_exists("/dist/CDE")) { dialog_clear_norefresh(); msgNotify("Running CDE installation - please wait (this may take awhile!)."); dialog_clear(); + clear(); + refresh(); i = systemExecute("(cd /dist/CDE; sh Install)"); dialog_clear(); if (i) { @@ -516,10 +527,8 @@ configXFree86(dialogMenuItem *self) "to it will actually be /cdrom/CDE/dtinstall when you run it later).\n"); } } - - dialog_clear_norefresh(); - msgNotify("Running AcceleratedX 3.1 installation procedure, please wait."); if ((i = vsystem("/usr/X11R6/lib/X11/AcceleratedX/bin/Xinstall"))) { + dialog_clear_norefresh(); msgConfirm("Installation procedure failed, error code %d! Please report\n" "error to Walnut Creek CDROM tech support (either send email\n" "to support@cdrom.com or call +1 510 603 1234). Thank you!", i); diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c index e5dc4a99f145..493bf60e7aa8 100644 --- a/usr.sbin/sysinstall/system.c +++ b/usr.sbin/sysinstall/system.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id$ + * $Id: system.c,v 1.77 1997/02/22 14:12:20 peter Exp $ * * Jordan Hubbard * @@ -20,6 +20,8 @@ #include #include #include +#include +#include #include #include #include @@ -84,6 +86,8 @@ systemInitialize(int argc, char **argv) setenv("PATH", "/stand:/bin:/sbin:/usr/sbin:/usr/bin:/mnt/bin:/mnt/sbin:/mnt/usr/sbin:/mnt/usr/bin:/usr/X11R6/bin", 1); setbuf(stdin, 0); setbuf(stderr, 0); + /* Remount root read/write in case it's R/O */ + mount(MOUNT_MFS, "/", MNT_WANTRDWR | MNT_UPDATE, NULL); } else { char hname[256];