From c97113d14f96c09d523fd1b51ffff9266720f2f7 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Sun, 28 Apr 1996 20:54:11 +0000 Subject: Add a new -fake argument to make sysinstall not actually change things while I'm testing it. --- release/sysinstall/install.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'release/sysinstall/install.c') diff --git a/release/sysinstall/install.c b/release/sysinstall/install.c index 524b5c1935e4..ce36a3a92243 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.88 1996/04/28 01:07:22 jkh Exp $ + * $Id: install.c,v 1.89 1996/04/28 03:27:02 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -159,7 +159,8 @@ installInitial(void) return DITEM_SUCCESS; if (!variable_get(DISK_LABELLED)) { - msgConfirm("You need to assign disk labels before you can proceed with\nthe installation."); + msgConfirm("You need to assign disk labels before you can proceed with\n" + "the installation."); return DITEM_FAILURE; } /* If it's labelled, assume it's also partitioned */ @@ -518,7 +519,7 @@ installFixup(dialogMenuItem *self) if (!file_readable("/kernel")) { if (file_readable("/kernel.GENERIC")) { - if (system("cp -p /kernel.GENERIC /kernel")) { + if (vsystem("cp -p /kernel.GENERIC /kernel")) { msgConfirm("Unable to link /kernel into place!"); return DITEM_FAILURE; } @@ -567,8 +568,8 @@ installFixup(dialogMenuItem *self) msgNotify("Fixing permissions.."); /* BOGON #1: XFree86 extracting /usr/X11R6 with root-only perms */ if (directory_exists("/usr/X11R6")) { - system("chmod -R a+r /usr/X11R6"); - system("find /usr/X11R6 -type d | xargs chmod a+x"); + vsystem("chmod -R a+r /usr/X11R6"); + vsystem("find /usr/X11R6 -type d | xargs chmod a+x"); } /* BOGON #2: We leave /etc in a bad state */ chmod("/etc", 0755); @@ -729,6 +730,7 @@ installFilesystems(dialogMenuItem *self) return DITEM_SUCCESS; } +/* Initialize various user-settable values to their defaults */ int installVarDefaults(dialogMenuItem *self) { -- cgit v1.2.3