Delete unused menus (the i386 bootselect ones)

This commit is contained in:
dsl 2003-05-07 08:40:41 +00:00
parent d44463bc60
commit 0e07cf9a65
3 changed files with 3 additions and 405 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: menus.md.en,v 1.4 2002/09/09 10:53:49 grant Exp $ */
/* $NetBSD: menus.md.en,v 1.5 2003/05/07 08:40:41 dsl Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -172,138 +172,3 @@ menu md_distcustom, x=26, y=5, exit, title "Selection toggles inclusion";
option "X contrib clients", action { toggle_getit (11); };
option "X11 programming", action { toggle_getit (12); };
option "X11 Misc.", action { toggle_getit (13); };
/*
menu biosonematch;
option "This is the correct geometry", exit, action {
extern struct disklist *disklist;
extern struct nativedisk_info *nativedisk;
struct biosdisk_info *bip;
extern struct biosdisk_info *biosdisk;
bip = &disklist->dl_biosdisks[nativedisk->ni_biosmatches[0]];
bcyl = bip->bi_cyl;
bhead = bip->bi_head;
bsec = bip->bi_sec;
biosdisk = bip;
};
option "Set the geometry by hand", exit, action {
set_bios_geom(dlcyl, dlhead, dlsec);
biosdisk = NULL;
};
menu biosmultmatch;
option "Use one of these disks", exit, action {
extern struct disklist *disklist;
extern struct nativedisk_info *nativedisk;
struct biosdisk_info *bip;
extern struct biosdisk_info *biosdisk;
int sel;
char res[80];
do {
strcpy(res, "0");
msg_prompt(MSG_pickdisk, res, res, 80);
sel = atoi(res);
} while (sel < 0 || sel >= nativedisk->ni_nmatches);
bip = &disklist->dl_biosdisks[nativedisk->ni_biosmatches[0]];
bcyl = bip->bi_cyl;
bhead = bip->bi_head;
bsec = bip->bi_sec;
biosdisk = bip;
};
option "Set the geometry by hand", exit, action {
set_bios_geom(dlcyl, dlhead, dlsec);
biosdisk = NULL;
};
menu configbootsel, title "Change a bootmenu item", exit;
display action { msg_display(MSG_configbootsel);
disp_bootsel((struct mbr_partition *)&mbr[MBR_PARTOFF], mbs);
msg_display_add(MSG_bootseltimeout, (1000 * mbs->timeo) / 18200);
msg_display_add(MSG_defbootselopt);
if (mbs->defkey == SCAN_ENTER)
msg_display_add(MSG_defbootseloptactive);
else if (mbs->defkey < (SCAN_F1 + 4))
msg_display_add(MSG_defbootseloptpart,
defbootselpart);
else
msg_display_add(MSG_defbootseloptdisk,
defbootseldisk);
};
option "Edit menu entry 0",
action {
if (part[0].mbrp_typ != 0)
msg_prompt(MSG_bootselitemname, mbs->nametab[0],
mbs->nametab[0], 8);
};
option "Edit menu entry 1",
action {
if (part[1].mbrp_typ != 0)
msg_prompt(MSG_bootselitemname, mbs->nametab[1],
mbs->nametab[1], 8);
};
option "Edit menu entry 2",
action {
if (part[2].mbrp_typ != 0)
msg_prompt(MSG_bootselitemname, mbs->nametab[2],
mbs->nametab[2], 8);
};
option "Edit menu entry 3",
action {
if (part[3].mbrp_typ != 0)
msg_prompt(MSG_bootselitemname, mbs->nametab[3],
mbs->nametab[3], 8);
};
option "Set timeout value",
action {
char tstr[8];
unsigned timo;
do {
snprintf(tstr, 8, "%u",
(1000 * mbs->timeo) / 18200);
msg_prompt(MSG_bootseltimeoutval, tstr, tstr,
8);
timo = (unsigned)atoi(tstr);
} while (timo > 3600);
mbs->timeo = (u_int16_t)((timo * 18200) / 1000);
};
option "Set default option", sub menu defaultbootsel;
menu defaultbootsel, title "Pick a default partition/disk to boot";
option "Partition 0", exit,
action {
if (mbs->nametab[0][0] != 0 && part[0].mbrp_typ != 0)
mbs->defkey = SCAN_F1; defbootselpart = 0;
};
option "Partition 1", exit,
action {
if (mbs->nametab[1][0] != 0 && part[1].mbrp_typ != 0)
mbs->defkey = SCAN_F1 + 1; defbootselpart = 1;
};
option "Partition 2", exit,
action {
if (mbs->nametab[2][0] != 0 && part[2].mbrp_typ != 0)
mbs->defkey = SCAN_F1 + 2; defbootselpart = 2;
};
option "Partition 3", exit,
action {
if (mbs->nametab[3][0] != 0 && part[3].mbrp_typ != 0)
mbs->defkey = SCAN_F1 + 3; defbootselpart = 3;
};
option "Harddisk 0", exit,
action { mbs->defkey = SCAN_F1 + 4; defbootseldisk = 0; };
option "Harddisk 1", exit,
action { mbs->defkey = SCAN_F1 + 5; defbootseldisk = 1; };
option "Harddisk 2", exit,
action { mbs->defkey = SCAN_F1 + 6; defbootseldisk = 2; };
option "Harddisk 3", exit,
action { mbs->defkey = SCAN_F1 + 7; defbootseldisk = 3; };
option "Harddisk 4", exit,
action { mbs->defkey = SCAN_F1 + 8; defbootseldisk = 4; };
option "Harddisk 5", exit,
action { mbs->defkey = SCAN_F1 + 9; defbootseldisk = 5; };
option "First active partition", exit,
action { mbs->defkey = SCAN_ENTER; };
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: menus.md.fr,v 1.5 2002/09/27 15:21:54 grant Exp $ */
/* $NetBSD: menus.md.fr,v 1.6 2003/05/07 08:40:41 dsl Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -173,136 +173,3 @@ menu md_distcustom, x=26, y=5, exit, title "S
option "X11 clients contribués", action { toggle_getit (11); };
option "X11 développement", action { toggle_getit (12); };
option "X11 Misc.", action { toggle_getit (13); };
menu biosonematch;
option "C'est le bon géométrie", exit, action {
extern struct disklist *disklist;
extern struct nativedisk_info *nativedisk;
struct biosdisk_info *bip;
extern struct biosdisk_info *biosdisk;
bip = &disklist->dl_biosdisks[nativedisk->ni_biosmatches[0]];
bcyl = bip->bi_cyl;
bhead = bip->bi_head;
bsec = bip->bi_sec;
biosdisk = bip;
};
option "Entrer la géométrie", exit, action {
set_bios_geom(dlcyl, dlhead, dlsec);
biosdisk = NULL;
};
menu biosmultmatch;
option "Utiliser l'un de ces disques", exit, action {
extern struct disklist *disklist;
extern struct nativedisk_info *nativedisk;
struct biosdisk_info *bip;
extern struct biosdisk_info *biosdisk;
int sel;
char res[80];
do {
strcpy(res, "0");
msg_prompt(MSG_pickdisk, res, res, 80);
sel = atoi(res);
} while (sel < 0 || sel >= nativedisk->ni_nmatches);
bip = &disklist->dl_biosdisks[nativedisk->ni_biosmatches[0]];
bcyl = bip->bi_cyl;
bhead = bip->bi_head;
bsec = bip->bi_sec;
biosdisk = bip;
};
option "Entrer la géométrie", exit, action {
set_bios_geom(dlcyl, dlhead, dlsec);
biosdisk = NULL;
};
menu configbootsel, title "Changer une entree du menu", exit;
display action { msg_display(MSG_configbootsel);
disp_bootsel((struct mbr_partition *)&mbr[MBR_PARTOFF], mbs);
msg_display_add(MSG_bootseltimeout, (1000 * mbs->timeo) / 18200);
msg_display_add(MSG_defbootselopt);
if (mbs->defkey == SCAN_ENTER)
msg_display_add(MSG_defbootseloptactive);
else if (mbs->defkey < (SCAN_F1 + 4))
msg_display_add(MSG_defbootseloptpart,
defbootselpart);
else
msg_display_add(MSG_defbootseloptdisk,
defbootseldisk);
};
option "Changer l'entrée 0 du menu",
action {
if (part[0].mbrp_typ != 0)
msg_prompt(MSG_bootselitemname, mbs->nametab[0],
mbs->nametab[0], 8);
};
option "Changer l'entrée 1 du menu",
action {
if (part[1].mbrp_typ != 0)
msg_prompt(MSG_bootselitemname, mbs->nametab[1],
mbs->nametab[1], 8);
};
option "Changer l'entrée 2 du menu",
action {
if (part[2].mbrp_typ != 0)
msg_prompt(MSG_bootselitemname, mbs->nametab[2],
mbs->nametab[2], 8);
};
option "Changer l'entrée 3 du menu",
action {
if (part[3].mbrp_typ != 0)
msg_prompt(MSG_bootselitemname, mbs->nametab[3],
mbs->nametab[3], 8);
};
option "Changer le temps d'attente",
action {
char tstr[8];
unsigned timo;
do {
snprintf(tstr, 8, "%u",
(1000 * mbs->timeo) / 18200);
msg_prompt(MSG_bootseltimeoutval, tstr, tstr,
8);
timo = (unsigned)atoi(tstr);
} while (timo > 3600);
mbs->timeo = (u_int16_t)((timo * 18200) / 1000);
};
option "Changer le choix par defaut", sub menu defaultbootsel;
menu defaultbootsel, title "Choisissez un disque ou partition";
option "Partition 0", exit,
action {
if (mbs->nametab[0][0] != 0 && part[0].mbrp_typ != 0)
mbs->defkey = SCAN_F1; defbootselpart = 0;
};
option "Partition 1", exit,
action {
if (mbs->nametab[1][0] != 0 && part[1].mbrp_typ != 0)
mbs->defkey = SCAN_F1 + 1; defbootselpart = 1;
};
option "Partition 2", exit,
action {
if (mbs->nametab[2][0] != 0 && part[2].mbrp_typ != 0)
mbs->defkey = SCAN_F1 + 2; defbootselpart = 2;
};
option "Partition 3", exit,
action {
if (mbs->nametab[3][0] != 0 && part[3].mbrp_typ != 0)
mbs->defkey = SCAN_F1 + 3; defbootselpart = 3;
};
option "Disque dur 0", exit,
action { mbs->defkey = SCAN_F1 + 4; defbootseldisk = 0; };
option "Disque dur 1", exit,
action { mbs->defkey = SCAN_F1 + 5; defbootseldisk = 1; };
option "Disque dur 2", exit,
action { mbs->defkey = SCAN_F1 + 6; defbootseldisk = 2; };
option "Disque dur 3", exit,
action { mbs->defkey = SCAN_F1 + 7; defbootseldisk = 3; };
option "Disque dur 4", exit,
action { mbs->defkey = SCAN_F1 + 8; defbootseldisk = 4; };
option "Disque dur 5", exit,
action { mbs->defkey = SCAN_F1 + 9; defbootseldisk = 5; };
option "Première partition active", exit,
action { mbs->defkey = SCAN_ENTER; };

View File

@ -1,4 +1,4 @@
/* $NetBSD: menus.md.pl,v 1.3 2002/05/18 07:14:32 uch Exp $ */
/* $NetBSD: menus.md.pl,v 1.4 2003/05/07 08:40:41 dsl Exp $ */
/* Based on english version: */
/* NetBSD: menus.md.en,v 1.2 2001/11/29 23:21:00 thorpej Exp */
@ -173,137 +173,3 @@ menu md_distcustom, x=26, y=5, exit, title "Wybierz";
option "X contrib clients", action { toggle_getit (11); };
option "X11 programming", action { toggle_getit (12); };
option "X11 Misc.", action { toggle_getit (13); };
/*
menu biosonematch;
option "To jest prawidlowa geometria", exit, action {
extern struct disklist *disklist;
extern struct nativedisk_info *nativedisk;
struct biosdisk_info *bip;
extern struct biosdisk_info *biosdisk;
bip = &disklist->dl_biosdisks[nativedisk->ni_biosmatches[0]];
bcyl = bip->bi_cyl;
bhead = bip->bi_head;
bsec = bip->bi_sec;
biosdisk = bip;
};
option "Ustaw geometrie recznie", exit, action {
set_bios_geom(dlcyl, dlhead, dlsec);
biosdisk = NULL;
};
menu biosmultmatch;
option "Uzyj jednego z tych dyskow", exit, action {
extern struct disklist *disklist;
extern struct nativedisk_info *nativedisk;
struct biosdisk_info *bip;
extern struct biosdisk_info *biosdisk;
int sel;
char res[80];
do {
strcpy(res, "0");
msg_prompt(MSG_pickdisk, res, res, 80);
sel = atoi(res);
} while (sel < 0 || sel >= nativedisk->ni_nmatches);
bip = &disklist->dl_biosdisks[nativedisk->ni_biosmatches[0]];
bcyl = bip->bi_cyl;
bhead = bip->bi_head;
bsec = bip->bi_sec;
biosdisk = bip;
};
option "Ustaw geometrie recznie", exit, action {
set_bios_geom(dlcyl, dlhead, dlsec);
biosdisk = NULL;
};
menu configbootsel, title "Zmien bootmenu", exit;
display action { msg_display(MSG_configbootsel);
disp_bootsel((struct mbr_partition *)&mbr[MBR_PARTOFF], mbs);
msg_display_add(MSG_bootseltimeout, (1000 * mbs->timeo) / 18200);
msg_display_add(MSG_defbootselopt);
if (mbs->defkey == SCAN_ENTER)
msg_display_add(MSG_defbootseloptactive);
else if (mbs->defkey < (SCAN_F1 + 4))
msg_display_add(MSG_defbootseloptpart,
defbootselpart);
else
msg_display_add(MSG_defbootseloptdisk,
defbootseldisk);
};
option "Edytuj wpis 0",
action {
if (part[0].mbrp_typ != 0)
msg_prompt(MSG_bootselitemname, mbs->nametab[0],
mbs->nametab[0], 8);
};
option "Edytuj wpis 1",
action {
if (part[1].mbrp_typ != 0)
msg_prompt(MSG_bootselitemname, mbs->nametab[1],
mbs->nametab[1], 8);
};
option "Edytuj wpis 2",
action {
if (part[2].mbrp_typ != 0)
msg_prompt(MSG_bootselitemname, mbs->nametab[2],
mbs->nametab[2], 8);
};
option "Edytuj wpis 3",
action {
if (part[3].mbrp_typ != 0)
msg_prompt(MSG_bootselitemname, mbs->nametab[3],
mbs->nametab[3], 8);
};
option "Ustaw opoznienie",
action {
char tstr[8];
unsigned timo;
do {
snprintf(tstr, 8, "%u",
(1000 * mbs->timeo) / 18200);
msg_prompt(MSG_bootseltimeoutval, tstr, tstr,
8);
timo = (unsigned)atoi(tstr);
} while (timo > 3600);
mbs->timeo = (u_int16_t)((timo * 18200) / 1000);
};
option "Ustaw domyslna opcje", sub menu defaultbootsel;
menu defaultbootsel, title "Wybierz domyslna partycje/dysk do uruchomiania";
option "Partycja 0", exit,
action {
if (mbs->nametab[0][0] != 0 && part[0].mbrp_typ != 0)
mbs->defkey = SCAN_F1; defbootselpart = 0;
};
option "Partycja 1", exit,
action {
if (mbs->nametab[1][0] != 0 && part[1].mbrp_typ != 0)
mbs->defkey = SCAN_F1 + 1; defbootselpart = 1;
};
option "Partycja 2", exit,
action {
if (mbs->nametab[2][0] != 0 && part[2].mbrp_typ != 0)
mbs->defkey = SCAN_F1 + 2; defbootselpart = 2;
};
option "Partycja 3", exit,
action {
if (mbs->nametab[3][0] != 0 && part[3].mbrp_typ != 0)
mbs->defkey = SCAN_F1 + 3; defbootselpart = 3;
};
option "Dysk twardy 0", exit,
action { mbs->defkey = SCAN_F1 + 4; defbootseldisk = 0; };
option "Dysk twardy 1", exit,
action { mbs->defkey = SCAN_F1 + 5; defbootseldisk = 1; };
option "Dysk twardy 2", exit,
action { mbs->defkey = SCAN_F1 + 6; defbootseldisk = 2; };
option "Dysk twardy 3", exit,
action { mbs->defkey = SCAN_F1 + 7; defbootseldisk = 3; };
option "Dysk twardy 4", exit,
action { mbs->defkey = SCAN_F1 + 8; defbootseldisk = 4; };
option "Dysk twardy 5", exit,
action { mbs->defkey = SCAN_F1 + 9; defbootseldisk = 5; };
option "Pierwsza aktywna partycja", exit,
action { mbs->defkey = SCAN_ENTER; };
*/