Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/distrib/utils/sysinst/arch/i386 pullup 1.19->1.20 (fvdl)



details:   https://anonhg.NetBSD.org/src/rev/90700f57c9eb
branches:  netbsd-1-4
changeset: 468619:90700f57c9eb
user:      perry <perry%NetBSD.org@localhost>
date:      Sun May 02 21:50:31 1999 +0000

description:
pullup 1.19->1.20 (fvdl)

diffstat:

 distrib/utils/sysinst/arch/i386/menus.md.eng |  92 +++++++++++++++++++++++++++-
 1 files changed, 91 insertions(+), 1 deletions(-)

diffs (103 lines):

diff -r 1c2badd41cbf -r 90700f57c9eb distrib/utils/sysinst/arch/i386/menus.md.eng
--- a/distrib/utils/sysinst/arch/i386/menus.md.eng      Sun May 02 21:49:32 1999 +0000
+++ b/distrib/utils/sysinst/arch/i386/menus.md.eng      Sun May 02 21:50:31 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: menus.md.eng,v 1.18.2.1 1999/04/19 15:19:29 perry Exp $        */
+/*     $NetBSD: menus.md.eng,v 1.18.2.2 1999/05/02 21:50:31 perry Exp $        */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -234,3 +234,93 @@
                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; };



Home | Main Index | Thread Index | Old Index