1995-04-27 12:50:35 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 1995
|
|
|
|
* Jordan Hubbard. All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
1995-05-30 08:29:07 +00:00
|
|
|
* notice, this list of conditions and the following disclaimer,
|
|
|
|
* verbatim and that no modifications are made prior to this
|
1995-04-27 12:50:35 +00:00
|
|
|
* point in the file.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY JORDAN HUBBARD ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL JORDAN HUBBARD OR HIS PETS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2001-07-26 07:17:27 +00:00
|
|
|
#ifndef lint
|
|
|
|
static const char rcsid[] =
|
|
|
|
"$FreeBSD$";
|
|
|
|
#endif
|
|
|
|
|
2006-08-07 23:35:49 +00:00
|
|
|
#include "sade.h"
|
1995-04-27 12:50:35 +00:00
|
|
|
|
|
|
|
/* All the system menus go here.
|
|
|
|
*
|
|
|
|
* Hardcoded things like version number strings will disappear from
|
|
|
|
* these menus just as soon as I add the code for doing inline variable
|
|
|
|
* expansion.
|
|
|
|
*/
|
|
|
|
|
1995-05-01 21:56:32 +00:00
|
|
|
DMenu MenuDiskDevices = {
|
1996-04-25 17:31:27 +00:00
|
|
|
DMENU_CHECKLIST_TYPE | DMENU_SELECTION_RETURNS,
|
1995-05-16 02:53:31 +00:00
|
|
|
"Select Drive(s)",
|
1996-11-09 18:12:17 +00:00
|
|
|
"Please select the drive, or drives, on which you wish to perform\n"
|
|
|
|
"this operation. If you are attempting to install a boot partition\n"
|
|
|
|
"on a drive other than the first one or have multiple operating\n"
|
|
|
|
"systems on your machine, you will have the option to install a boot\n"
|
|
|
|
"manager later. To select a drive, use the arrow keys to move to it\n"
|
2001-07-26 07:17:27 +00:00
|
|
|
"and press [SPACE] or [ENTER]. To de-select it, press it again.\n\n"
|
2001-08-31 03:29:25 +00:00
|
|
|
"Use [TAB] to get to the buttons and leave this menu.",
|
1995-12-07 10:34:59 +00:00
|
|
|
"Press F1 for important information regarding disk geometry!",
|
|
|
|
"drives",
|
2006-08-08 13:45:46 +00:00
|
|
|
{ { NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0 } },
|
1995-05-08 10:20:56 +00:00
|
|
|
};
|
|
|
|
|
2006-08-07 23:35:49 +00:00
|
|
|
DMenu MenuMain = {
|
1996-04-07 03:52:36 +00:00
|
|
|
DMENU_NORMAL_TYPE,
|
2006-08-07 23:35:49 +00:00
|
|
|
"Disklabel and partitioning utility",
|
|
|
|
"This is a utility for partitioning and/or labelling your disks.",
|
|
|
|
"DISKUTIL",
|
|
|
|
"main",
|
|
|
|
{
|
2006-08-08 14:28:03 +00:00
|
|
|
#ifdef WITH_SLICES
|
2006-08-08 13:45:46 +00:00
|
|
|
{ "1 Partition", "Managing disk partitions", NULL, diskPartitionEditor, NULL, NULL, 0, 0, 0, 0 },
|
2006-08-08 14:28:03 +00:00
|
|
|
#endif
|
2006-08-08 13:45:46 +00:00
|
|
|
{ "2 Label", "Label allocated disk partitions", NULL, diskLabelEditor, NULL, NULL, 0, 0, 0, 0 },
|
|
|
|
{ NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0 }
|
|
|
|
},
|
1995-04-27 18:03:55 +00:00
|
|
|
};
|
1995-05-20 20:30:12 +00:00
|
|
|
|
2003-05-24 21:12:14 +00:00
|
|
|
#if defined(__i386__) || defined(__amd64__)
|
2002-11-03 10:06:22 +00:00
|
|
|
#ifdef PC98
|
|
|
|
/* IPL type menu */
|
|
|
|
DMenu MenuIPLType = {
|
|
|
|
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
|
|
|
|
"overwrite me", /* will be disk specific label */
|
|
|
|
"If you want a FreeBSD Boot Manager, select \"BootMgr\". If you would\n"
|
|
|
|
"prefer your Boot Manager to remain untouched then select \"None\".\n\n",
|
|
|
|
"Press F1 to read about drive setup",
|
|
|
|
"drives",
|
|
|
|
{ { "BootMgr", "Install the FreeBSD Boot Manager",
|
2006-08-09 05:33:45 +00:00
|
|
|
dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, 0, 0, 0, 0 },
|
2002-11-03 10:06:22 +00:00
|
|
|
{ "None", "Leave the IPL untouched",
|
|
|
|
dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 1 },
|
2006-08-08 13:45:46 +00:00
|
|
|
{ NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0 } },
|
2002-11-03 10:06:22 +00:00
|
|
|
};
|
|
|
|
#else
|
1995-05-20 20:30:12 +00:00
|
|
|
/* MBR type menu */
|
|
|
|
DMenu MenuMBRType = {
|
2001-08-12 23:40:04 +00:00
|
|
|
DMENU_NORMAL_TYPE | DMENU_SELECTION_RETURNS,
|
1995-12-07 10:34:59 +00:00
|
|
|
"overwrite me", /* will be disk specific label */
|
|
|
|
"FreeBSD comes with a boot selector that allows you to easily\n"
|
1996-04-07 03:52:36 +00:00
|
|
|
"select between FreeBSD and any other operating systems on your machine\n"
|
1996-11-09 18:12:17 +00:00
|
|
|
"at boot time. If you have more than one drive and want to boot\n"
|
|
|
|
"from the second one, the boot selector will also make it possible\n"
|
|
|
|
"to do so (limitations in the PC BIOS usually prevent this otherwise).\n"
|
|
|
|
"If you do not want a boot selector, or wish to replace an existing\n"
|
|
|
|
"one, select \"standard\". If you would prefer your Master Boot\n"
|
|
|
|
"Record to remain untouched then select \"None\".\n\n"
|
|
|
|
" NOTE: PC-DOS users will almost certainly require \"None\"!",
|
1997-03-08 12:58:29 +00:00
|
|
|
"Press F1 to read about drive setup",
|
|
|
|
"drives",
|
1998-12-09 02:46:19 +00:00
|
|
|
{ { "BootMgr", "Install the FreeBSD Boot Manager",
|
2006-08-08 13:45:46 +00:00
|
|
|
dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, 0, 0, 0, 0 },
|
1996-11-09 18:12:17 +00:00
|
|
|
{ "Standard", "Install a standard MBR (no boot manager)",
|
|
|
|
dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 1 },
|
|
|
|
{ "None", "Leave the Master Boot Record untouched",
|
|
|
|
dmenuRadioCheck, dmenuSetValue, NULL, &BootMgr, '(', '*', ')', 2 },
|
2006-08-08 13:45:46 +00:00
|
|
|
{ NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0 } },
|
1995-05-20 20:30:12 +00:00
|
|
|
};
|
2002-11-03 10:06:22 +00:00
|
|
|
#endif /* PC98 */
|
2002-11-27 19:54:46 +00:00
|
|
|
#endif /* __i386__ */
|
1995-05-24 01:27:15 +00:00
|
|
|
|
1995-05-28 09:31:44 +00:00
|
|
|
|