From dd0a36ecaedf3bf341790aeaa803f565899542c6 Mon Sep 17 00:00:00 2001 From: jkh Date: Thu, 25 May 1995 01:22:20 +0000 Subject: [PATCH] Put back some changes that were smashed in yesterday's release tree shoot-down. --- release/Makefile | 6 +++--- release/sysinstall/install.c | 20 ++++++++++-------- release/sysinstall/label.c | 4 ++-- release/sysinstall/menus.c | 4 ++-- release/sysinstall/misc.c | 35 +++++++++++++++++++++++++++++--- release/sysinstall/sysinstall.h | 3 ++- usr.sbin/sade/install.c | 20 ++++++++++-------- usr.sbin/sade/label.c | 4 ++-- usr.sbin/sade/menus.c | 4 ++-- usr.sbin/sade/misc.c | 35 +++++++++++++++++++++++++++++--- usr.sbin/sade/sade.h | 3 ++- usr.sbin/sysinstall/install.c | 20 ++++++++++-------- usr.sbin/sysinstall/label.c | 4 ++-- usr.sbin/sysinstall/menus.c | 4 ++-- usr.sbin/sysinstall/misc.c | 35 +++++++++++++++++++++++++++++--- usr.sbin/sysinstall/sysinstall.h | 3 ++- 16 files changed, 150 insertions(+), 54 deletions(-) diff --git a/release/Makefile b/release/Makefile index fa9e30d2c394..22a91e99256e 100644 --- a/release/Makefile +++ b/release/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.175 1995/05/24 08:59:01 jkh Exp $ +# $Id: Makefile,v 1.176 1995/05/24 11:17:53 gpalmer Exp $ # # How to roll a release: # @@ -78,10 +78,10 @@ release: echo "cd /usr/src" >> ${CHROOTDIR}/mk echo "make world" >> ${CHROOTDIR}/mk echo "cd /usr/src/release/libdisk" >> ${CHROOTDIR}/mk - echo "make obj" >> ${CHROOTDIR}/mk + echo "make obj depend" >> ${CHROOTDIR}/mk echo "make all" >> ${CHROOTDIR}/mk echo "cd /usr/src/release/sysinstall" >> ${CHROOTDIR}/mk - echo "make obj" >> ${CHROOTDIR}/mk + echo "make obj depend" >> ${CHROOTDIR}/mk echo "make all" >> ${CHROOTDIR}/mk echo "cd /usr/src/release" >> ${CHROOTDIR}/mk echo "make obj" >> ${CHROOTDIR}/mk diff --git a/release/sysinstall/install.c b/release/sysinstall/install.c index 7168edd2b3b3..c47e3ed1aecd 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.51 1995/05/24 09:00:28 jkh Exp $ + * $Id: install.c,v 1.52 1995/05/24 17:49:16 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -117,7 +117,7 @@ checkLabels(void) return TRUE; } -static void +static Boolean installInitial(void) { extern u_char boot1[], boot2[]; @@ -129,18 +129,18 @@ installInitial(void) char *cp; if (alreadyDone) - return; + return TRUE; if (!getenv(DISK_PARTITIONED)) { msgConfirm("You need to partition your disk before you can proceed with\nthe installation."); - return; + return FALSE; } if (!getenv(DISK_LABELLED)) { msgConfirm("You need to assign disk labels before you can proceed with\nthe installation."); - return; + return FALSE; } if (!checkLabels()) - return; + return FALSE; /* Figure out what kind of MBR the user wants */ dmenuOpenSimple(&MenuMBRType); @@ -155,7 +155,7 @@ installInitial(void) /* If we refuse to proceed, bail. */ if (msgYesNo("Last Chance! Are you SURE you want continue the installation?\n\nIf you're running this on an existing system, we STRONGLY\nencourage you to make proper backups before proceeding.\nWe take no responsibility for lost disk contents!")) - return; + return FALSE; devs = deviceFind(NULL, DEVICE_TYPE_DISK); for (i = 0; devs[i]; i++) { @@ -198,6 +198,7 @@ installInitial(void) variable_set2(RUNNING_ON_ROOT, "yes"); cpio_extract(); alreadyDone = TRUE; + return TRUE; } static void @@ -230,7 +231,8 @@ installCommit(char *str) if (!mediaVerify()) return 0; - installInitial(); + if (!installInitial()) + return 0; distExtractAll(); installFinal(); return 0; @@ -333,7 +335,7 @@ make_filesystems(void) if (!tmp) continue; - command_func_add(tmp->mountpoint, Mount, c1->name); + command_func_add(tmp->mountpoint, Mount_DOS, c1->name); } } } diff --git a/release/sysinstall/label.c b/release/sysinstall/label.c index 84cd81e0bf93..a2d598b0eec8 100644 --- a/release/sysinstall/label.c +++ b/release/sysinstall/label.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: label.c,v 1.22 1995/05/23 02:41:07 jkh Exp $ + * $Id: label.c,v 1.23 1995/05/24 09:00:32 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -473,7 +473,7 @@ diskLabelEditor(char *str) struct chunk *tmp; u_long flags = 0; - val = msgGetInput(NULL, "Please specify the size for new FreeBSD partition in blocks, or append\na trailing `M' for megabytes (e.g. 20M).\nSpace free: %d blocks (%dMB)", sz, sz / ONE_MEG); + val = msgGetInput(NULL, "Please specify the size for new FreeBSD partition in blocks, or append\na trailing `M' for megabytes (e.g. 20M).\n\nSpace free: %d blocks (%dMB)", sz, sz / ONE_MEG); if (!val || (size = strtol(val, &cp, 0)) <= 0) break; diff --git a/release/sysinstall/menus.c b/release/sysinstall/menus.c index 8259e9d47269..7032b0269561 100644 --- a/release/sysinstall/menus.c +++ b/release/sysinstall/menus.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: menus.c,v 1.27 1995/05/24 09:00:51 jkh Exp $ + * $Id: menus.c,v 1.28 1995/05/24 17:49:20 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -279,7 +279,7 @@ service provider using a special utility we provide for that purpose.\n\ You can also install over a parallel port using a special \"laplink\"\n\ cable, though this only works if you have another FreeBSD machine running\n\ a fairly recent (2.0R or later) release to talk to.\n\n\ -To use PPP, select one of the serial devices, otherwise select lp0 for\n\ +To use PPP select one of the serial devices, otherwise select lp0 for\n\ the parallel port or one of the ethernet controllers (if you have one)\n\ for an ethernet installation.", "Press F1 to read network configuration manual", diff --git a/release/sysinstall/misc.c b/release/sysinstall/misc.c index 197a9ec774d4..a2ab20f8aed6 100644 --- a/release/sysinstall/misc.c +++ b/release/sysinstall/misc.c @@ -1,7 +1,7 @@ /* * Miscellaneous support routines.. * - * $Id: misc.c,v 1.7 1995/05/18 16:57:52 jkh Exp $ + * $Id: misc.c,v 1.8 1995/05/23 18:06:15 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -234,8 +234,37 @@ Mount(char *mountp, void *dev) msgDebug("mount %s %s\n", device, mountpoint); ufsargs.fspec = device; if (mount(MOUNT_UFS, mountpoint, 0, (caddr_t)&ufsargs) == -1) { - msgConfirm("Error mounting %s on %s : %s\n", - device, mountpoint, strerror(errno)); + msgConfirm("Error mounting %s on %s : %s\n", device, mountpoint, strerror(errno)); + return 1; + } + return 0; +} + +int +Mount_DOS(char *mountp, void *dev) +{ + struct ufs_args ufsargs; + char device[80]; + char mountpoint[FILENAME_MAX]; + + if (*((char *)dev) != '/') { + sprintf(device, "/mnt/dev/%s", (char *)dev); + sprintf(mountpoint, "/mnt%s", mountp); + } + else { + strcpy(device, dev); + strcpy(mountpoint, mountp); + } + memset(&ufsargs,0,sizeof ufsargs); + + if (Mkdir(mountpoint, NULL)) { + msgConfirm("Unable to make directory mountpoint for %s!", mountpoint); + return 1; + } + msgDebug("mount %s %s\n", device, mountpoint); + ufsargs.fspec = device; + if (mount(MOUNT_MSDOS, mountpoint, 0, (caddr_t)&ufsargs) == -1) { + msgConfirm("Error mounting %s on %s : %s\n", device, mountpoint, strerror(errno)); return 1; } return 0; diff --git a/release/sysinstall/sysinstall.h b/release/sysinstall/sysinstall.h index 3c5ac0d3f06c..c7ac0980d7ea 100644 --- a/release/sysinstall/sysinstall.h +++ b/release/sysinstall/sysinstall.h @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated to essentially a complete rewrite. * - * $Id: sysinstall.h,v 1.30 1995/05/24 09:00:58 jkh Exp $ + * $Id: sysinstall.h,v 1.31 1995/05/24 22:37:43 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -365,6 +365,7 @@ extern char **item_add_pair(char **list, char *item1, char *item2, extern void items_free(char **list, int *curr, int *max); extern int Mkdir(char *, void *data); extern int Mount(char *, void *data); +extern int Mount_DOS(char *, void *data); /* msg.c */ extern void msgInfo(char *fmt, ...); diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c index 7168edd2b3b3..c47e3ed1aecd 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.51 1995/05/24 09:00:28 jkh Exp $ + * $Id: install.c,v 1.52 1995/05/24 17:49:16 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -117,7 +117,7 @@ checkLabels(void) return TRUE; } -static void +static Boolean installInitial(void) { extern u_char boot1[], boot2[]; @@ -129,18 +129,18 @@ installInitial(void) char *cp; if (alreadyDone) - return; + return TRUE; if (!getenv(DISK_PARTITIONED)) { msgConfirm("You need to partition your disk before you can proceed with\nthe installation."); - return; + return FALSE; } if (!getenv(DISK_LABELLED)) { msgConfirm("You need to assign disk labels before you can proceed with\nthe installation."); - return; + return FALSE; } if (!checkLabels()) - return; + return FALSE; /* Figure out what kind of MBR the user wants */ dmenuOpenSimple(&MenuMBRType); @@ -155,7 +155,7 @@ installInitial(void) /* If we refuse to proceed, bail. */ if (msgYesNo("Last Chance! Are you SURE you want continue the installation?\n\nIf you're running this on an existing system, we STRONGLY\nencourage you to make proper backups before proceeding.\nWe take no responsibility for lost disk contents!")) - return; + return FALSE; devs = deviceFind(NULL, DEVICE_TYPE_DISK); for (i = 0; devs[i]; i++) { @@ -198,6 +198,7 @@ installInitial(void) variable_set2(RUNNING_ON_ROOT, "yes"); cpio_extract(); alreadyDone = TRUE; + return TRUE; } static void @@ -230,7 +231,8 @@ installCommit(char *str) if (!mediaVerify()) return 0; - installInitial(); + if (!installInitial()) + return 0; distExtractAll(); installFinal(); return 0; @@ -333,7 +335,7 @@ make_filesystems(void) if (!tmp) continue; - command_func_add(tmp->mountpoint, Mount, c1->name); + command_func_add(tmp->mountpoint, Mount_DOS, c1->name); } } } diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c index 84cd81e0bf93..a2d598b0eec8 100644 --- a/usr.sbin/sade/label.c +++ b/usr.sbin/sade/label.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: label.c,v 1.22 1995/05/23 02:41:07 jkh Exp $ + * $Id: label.c,v 1.23 1995/05/24 09:00:32 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -473,7 +473,7 @@ diskLabelEditor(char *str) struct chunk *tmp; u_long flags = 0; - val = msgGetInput(NULL, "Please specify the size for new FreeBSD partition in blocks, or append\na trailing `M' for megabytes (e.g. 20M).\nSpace free: %d blocks (%dMB)", sz, sz / ONE_MEG); + val = msgGetInput(NULL, "Please specify the size for new FreeBSD partition in blocks, or append\na trailing `M' for megabytes (e.g. 20M).\n\nSpace free: %d blocks (%dMB)", sz, sz / ONE_MEG); if (!val || (size = strtol(val, &cp, 0)) <= 0) break; diff --git a/usr.sbin/sade/menus.c b/usr.sbin/sade/menus.c index 8259e9d47269..7032b0269561 100644 --- a/usr.sbin/sade/menus.c +++ b/usr.sbin/sade/menus.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: menus.c,v 1.27 1995/05/24 09:00:51 jkh Exp $ + * $Id: menus.c,v 1.28 1995/05/24 17:49:20 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -279,7 +279,7 @@ service provider using a special utility we provide for that purpose.\n\ You can also install over a parallel port using a special \"laplink\"\n\ cable, though this only works if you have another FreeBSD machine running\n\ a fairly recent (2.0R or later) release to talk to.\n\n\ -To use PPP, select one of the serial devices, otherwise select lp0 for\n\ +To use PPP select one of the serial devices, otherwise select lp0 for\n\ the parallel port or one of the ethernet controllers (if you have one)\n\ for an ethernet installation.", "Press F1 to read network configuration manual", diff --git a/usr.sbin/sade/misc.c b/usr.sbin/sade/misc.c index 197a9ec774d4..a2ab20f8aed6 100644 --- a/usr.sbin/sade/misc.c +++ b/usr.sbin/sade/misc.c @@ -1,7 +1,7 @@ /* * Miscellaneous support routines.. * - * $Id: misc.c,v 1.7 1995/05/18 16:57:52 jkh Exp $ + * $Id: misc.c,v 1.8 1995/05/23 18:06:15 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -234,8 +234,37 @@ Mount(char *mountp, void *dev) msgDebug("mount %s %s\n", device, mountpoint); ufsargs.fspec = device; if (mount(MOUNT_UFS, mountpoint, 0, (caddr_t)&ufsargs) == -1) { - msgConfirm("Error mounting %s on %s : %s\n", - device, mountpoint, strerror(errno)); + msgConfirm("Error mounting %s on %s : %s\n", device, mountpoint, strerror(errno)); + return 1; + } + return 0; +} + +int +Mount_DOS(char *mountp, void *dev) +{ + struct ufs_args ufsargs; + char device[80]; + char mountpoint[FILENAME_MAX]; + + if (*((char *)dev) != '/') { + sprintf(device, "/mnt/dev/%s", (char *)dev); + sprintf(mountpoint, "/mnt%s", mountp); + } + else { + strcpy(device, dev); + strcpy(mountpoint, mountp); + } + memset(&ufsargs,0,sizeof ufsargs); + + if (Mkdir(mountpoint, NULL)) { + msgConfirm("Unable to make directory mountpoint for %s!", mountpoint); + return 1; + } + msgDebug("mount %s %s\n", device, mountpoint); + ufsargs.fspec = device; + if (mount(MOUNT_MSDOS, mountpoint, 0, (caddr_t)&ufsargs) == -1) { + msgConfirm("Error mounting %s on %s : %s\n", device, mountpoint, strerror(errno)); return 1; } return 0; diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h index 3c5ac0d3f06c..c7ac0980d7ea 100644 --- a/usr.sbin/sade/sade.h +++ b/usr.sbin/sade/sade.h @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated to essentially a complete rewrite. * - * $Id: sysinstall.h,v 1.30 1995/05/24 09:00:58 jkh Exp $ + * $Id: sysinstall.h,v 1.31 1995/05/24 22:37:43 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -365,6 +365,7 @@ extern char **item_add_pair(char **list, char *item1, char *item2, extern void items_free(char **list, int *curr, int *max); extern int Mkdir(char *, void *data); extern int Mount(char *, void *data); +extern int Mount_DOS(char *, void *data); /* msg.c */ extern void msgInfo(char *fmt, ...); diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c index 7168edd2b3b3..c47e3ed1aecd 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.51 1995/05/24 09:00:28 jkh Exp $ + * $Id: install.c,v 1.52 1995/05/24 17:49:16 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -117,7 +117,7 @@ checkLabels(void) return TRUE; } -static void +static Boolean installInitial(void) { extern u_char boot1[], boot2[]; @@ -129,18 +129,18 @@ installInitial(void) char *cp; if (alreadyDone) - return; + return TRUE; if (!getenv(DISK_PARTITIONED)) { msgConfirm("You need to partition your disk before you can proceed with\nthe installation."); - return; + return FALSE; } if (!getenv(DISK_LABELLED)) { msgConfirm("You need to assign disk labels before you can proceed with\nthe installation."); - return; + return FALSE; } if (!checkLabels()) - return; + return FALSE; /* Figure out what kind of MBR the user wants */ dmenuOpenSimple(&MenuMBRType); @@ -155,7 +155,7 @@ installInitial(void) /* If we refuse to proceed, bail. */ if (msgYesNo("Last Chance! Are you SURE you want continue the installation?\n\nIf you're running this on an existing system, we STRONGLY\nencourage you to make proper backups before proceeding.\nWe take no responsibility for lost disk contents!")) - return; + return FALSE; devs = deviceFind(NULL, DEVICE_TYPE_DISK); for (i = 0; devs[i]; i++) { @@ -198,6 +198,7 @@ installInitial(void) variable_set2(RUNNING_ON_ROOT, "yes"); cpio_extract(); alreadyDone = TRUE; + return TRUE; } static void @@ -230,7 +231,8 @@ installCommit(char *str) if (!mediaVerify()) return 0; - installInitial(); + if (!installInitial()) + return 0; distExtractAll(); installFinal(); return 0; @@ -333,7 +335,7 @@ make_filesystems(void) if (!tmp) continue; - command_func_add(tmp->mountpoint, Mount, c1->name); + command_func_add(tmp->mountpoint, Mount_DOS, c1->name); } } } diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c index 84cd81e0bf93..a2d598b0eec8 100644 --- a/usr.sbin/sysinstall/label.c +++ b/usr.sbin/sysinstall/label.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: label.c,v 1.22 1995/05/23 02:41:07 jkh Exp $ + * $Id: label.c,v 1.23 1995/05/24 09:00:32 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -473,7 +473,7 @@ diskLabelEditor(char *str) struct chunk *tmp; u_long flags = 0; - val = msgGetInput(NULL, "Please specify the size for new FreeBSD partition in blocks, or append\na trailing `M' for megabytes (e.g. 20M).\nSpace free: %d blocks (%dMB)", sz, sz / ONE_MEG); + val = msgGetInput(NULL, "Please specify the size for new FreeBSD partition in blocks, or append\na trailing `M' for megabytes (e.g. 20M).\n\nSpace free: %d blocks (%dMB)", sz, sz / ONE_MEG); if (!val || (size = strtol(val, &cp, 0)) <= 0) break; diff --git a/usr.sbin/sysinstall/menus.c b/usr.sbin/sysinstall/menus.c index 8259e9d47269..7032b0269561 100644 --- a/usr.sbin/sysinstall/menus.c +++ b/usr.sbin/sysinstall/menus.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: menus.c,v 1.27 1995/05/24 09:00:51 jkh Exp $ + * $Id: menus.c,v 1.28 1995/05/24 17:49:20 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -279,7 +279,7 @@ service provider using a special utility we provide for that purpose.\n\ You can also install over a parallel port using a special \"laplink\"\n\ cable, though this only works if you have another FreeBSD machine running\n\ a fairly recent (2.0R or later) release to talk to.\n\n\ -To use PPP, select one of the serial devices, otherwise select lp0 for\n\ +To use PPP select one of the serial devices, otherwise select lp0 for\n\ the parallel port or one of the ethernet controllers (if you have one)\n\ for an ethernet installation.", "Press F1 to read network configuration manual", diff --git a/usr.sbin/sysinstall/misc.c b/usr.sbin/sysinstall/misc.c index 197a9ec774d4..a2ab20f8aed6 100644 --- a/usr.sbin/sysinstall/misc.c +++ b/usr.sbin/sysinstall/misc.c @@ -1,7 +1,7 @@ /* * Miscellaneous support routines.. * - * $Id: misc.c,v 1.7 1995/05/18 16:57:52 jkh Exp $ + * $Id: misc.c,v 1.8 1995/05/23 18:06:15 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -234,8 +234,37 @@ Mount(char *mountp, void *dev) msgDebug("mount %s %s\n", device, mountpoint); ufsargs.fspec = device; if (mount(MOUNT_UFS, mountpoint, 0, (caddr_t)&ufsargs) == -1) { - msgConfirm("Error mounting %s on %s : %s\n", - device, mountpoint, strerror(errno)); + msgConfirm("Error mounting %s on %s : %s\n", device, mountpoint, strerror(errno)); + return 1; + } + return 0; +} + +int +Mount_DOS(char *mountp, void *dev) +{ + struct ufs_args ufsargs; + char device[80]; + char mountpoint[FILENAME_MAX]; + + if (*((char *)dev) != '/') { + sprintf(device, "/mnt/dev/%s", (char *)dev); + sprintf(mountpoint, "/mnt%s", mountp); + } + else { + strcpy(device, dev); + strcpy(mountpoint, mountp); + } + memset(&ufsargs,0,sizeof ufsargs); + + if (Mkdir(mountpoint, NULL)) { + msgConfirm("Unable to make directory mountpoint for %s!", mountpoint); + return 1; + } + msgDebug("mount %s %s\n", device, mountpoint); + ufsargs.fspec = device; + if (mount(MOUNT_MSDOS, mountpoint, 0, (caddr_t)&ufsargs) == -1) { + msgConfirm("Error mounting %s on %s : %s\n", device, mountpoint, strerror(errno)); return 1; } return 0; diff --git a/usr.sbin/sysinstall/sysinstall.h b/usr.sbin/sysinstall/sysinstall.h index 3c5ac0d3f06c..c7ac0980d7ea 100644 --- a/usr.sbin/sysinstall/sysinstall.h +++ b/usr.sbin/sysinstall/sysinstall.h @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated to essentially a complete rewrite. * - * $Id: sysinstall.h,v 1.30 1995/05/24 09:00:58 jkh Exp $ + * $Id: sysinstall.h,v 1.31 1995/05/24 22:37:43 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -365,6 +365,7 @@ extern char **item_add_pair(char **list, char *item1, char *item2, extern void items_free(char **list, int *curr, int *max); extern int Mkdir(char *, void *data); extern int Mount(char *, void *data); +extern int Mount_DOS(char *, void *data); /* msg.c */ extern void msgInfo(char *fmt, ...);