aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sade/install.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-03-18 15:28:10 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-03-18 15:28:10 +0000
commit40ae4689df125baf0fdf2894e11e1037a4136f40 (patch)
treebbbb1da098bedb9748f8fa6faa46c10cb2c30d4a /usr.sbin/sade/install.c
parent198c323e44f1d23aacd7d28f28b6b9af3b4d3300 (diff)
downloadsrc-40ae4689df125baf0fdf2894e11e1037a4136f40.tar.gz
src-40ae4689df125baf0fdf2894e11e1037a4136f40.zip
Lots of fixes:
1. Revamp package installer to use new dependency lists and also pkg_add's new `read from stdin' mode to prevent a copy of the package from hitting the disk unnecessarily. 2. More fixes for running "not as init" - don't get upset if CDROM already mounted, do the right thing instead. 3. If running as init, assume first-time install and _don't show the (W)rite option in the fdisk screen. 4. Many other little tweaks, some of which will have to wait for fuller testing until I can create a boot floppy (testing certain system-destroying features of sysinstall can be a royal pain). Expect some more commits.
Notes
Notes: svn path=/head/; revision=14670
Diffstat (limited to 'usr.sbin/sade/install.c')
-rw-r--r--usr.sbin/sade/install.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index a609c09e7446..9c9e60a15e12 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.75 1996/01/29 20:17:27 joerg Exp $
+ * $Id: install.c,v 1.76 1996/03/02 07:31:54 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -242,9 +242,9 @@ installFixit(char *str)
dialog_update();
end_dialog();
DialogActive = FALSE;
- if (!directoryExists("/tmp"))
+ if (!directory_exists("/tmp"))
(void)symlink("/mnt2/tmp", "/tmp");
- if (!directoryExists("/var/tmp/vi.recover")) {
+ if (!directory_exists("/var/tmp/vi.recover")) {
if (Mkdir("/var/tmp/vi.recover", NULL) != RET_SUCCESS) {
dialog_clear();
msgConfirm("Warning: Was unable to create a /var/tmp/vi.recover directory.\n"
@@ -385,7 +385,7 @@ int
installCommit(char *str)
{
int i;
- extern Boolean cdromMounted;
+ extern int cdromMounted;
if (!mediaVerify())
return RET_FAIL;
@@ -469,7 +469,7 @@ installCommit(char *str)
if (!msgYesNo("Does this system have a mouse attached to it?"))
dmenuOpenSimple(&MenuMouse);
- if (directoryExists("/usr/X11R6")) {
+ if (directory_exists("/usr/X11R6")) {
dialog_clear();
if (!msgYesNo("Would you like to configure your X server at this time?"))
systemExecute("/usr/X11R6/bin/xf86config");
@@ -604,7 +604,7 @@ installFixup(char *str)
msgNotify("Fixing permissions..");
/* BOGON #1: XFree86 extracting /usr/X11R6 with root-only perms */
- if (directoryExists("/usr/X11R6")) {
+ if (directory_exists("/usr/X11R6")) {
system("chmod -R a+r /usr/X11R6");
system("find /usr/X11R6 -type d | xargs chmod a+x");
}