Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst/arch/hpcmips Remove unused definitions...
details: https://anonhg.NetBSD.org/src/rev/c78b2e8cdf3c
branches: trunk
changeset: 546807:c78b2e8cdf3c
user: dsl <dsl%NetBSD.org@localhost>
date: Wed May 07 08:45:43 2003 +0000
description:
Remove unused definitions of bootsel stuff
diffstat:
distrib/utils/sysinst/arch/hpcmips/md.c | 3 +-
distrib/utils/sysinst/arch/hpcmips/menus.md.en | 137 +------------------------
distrib/utils/sysinst/arch/hpcmips/menus.md.fr | 137 +------------------------
distrib/utils/sysinst/arch/hpcmips/menus.md.pl | 137 +------------------------
4 files changed, 4 insertions(+), 410 deletions(-)
diffs (truncated from 461 to 300 lines):
diff -r 062398e88028 -r c78b2e8cdf3c distrib/utils/sysinst/arch/hpcmips/md.c
--- a/distrib/utils/sysinst/arch/hpcmips/md.c Wed May 07 08:40:41 2003 +0000
+++ b/distrib/utils/sysinst/arch/hpcmips/md.c Wed May 07 08:45:43 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.19 2003/01/12 21:49:51 christos Exp $ */
+/* $NetBSD: md.c,v 1.20 2003/05/07 08:45:43 dsl Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -66,7 +66,6 @@
static void md_upgrade_mbrtype (void);
-struct mbr_bootsel *mbs;
int defbootselpart, defbootseldisk;
diff -r 062398e88028 -r c78b2e8cdf3c distrib/utils/sysinst/arch/hpcmips/menus.md.en
--- a/distrib/utils/sysinst/arch/hpcmips/menus.md.en Wed May 07 08:40:41 2003 +0000
+++ b/distrib/utils/sysinst/arch/hpcmips/menus.md.en Wed May 07 08:45:43 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: menus.md.en,v 1.9 2002/09/09 10:53:49 grant Exp $ */
+/* $NetBSD: menus.md.en,v 1.10 2003/05/07 08:45:43 dsl Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -226,138 +226,3 @@
option "X contrib clients", action { toggle_getit (12); };
option "X11 programming", action { toggle_getit (13); };
option "X11 Misc.", action { toggle_getit (14); };
-
-/*
-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, y=16, 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; };
-*/
diff -r 062398e88028 -r c78b2e8cdf3c distrib/utils/sysinst/arch/hpcmips/menus.md.fr
--- a/distrib/utils/sysinst/arch/hpcmips/menus.md.fr Wed May 07 08:40:41 2003 +0000
+++ b/distrib/utils/sysinst/arch/hpcmips/menus.md.fr Wed May 07 08:45:43 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: menus.md.fr,v 1.9 2002/09/27 15:21:54 grant Exp $ */
+/* $NetBSD: menus.md.fr,v 1.10 2003/05/07 08:45:43 dsl Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -198,138 +198,3 @@
option "X11 clients contribués", action { toggle_getit (12); };
option "X11 développement", action { toggle_getit (13); };
option "X11 Misc.", action { toggle_getit (14); };
-
-/*
-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; };
Home |
Main Index |
Thread Index |
Old Index