1999-06-20 09:44:26 +04:00
|
|
|
/* $NetBSD: menus.mi.eng,v 1.32 1999/06/20 05:44:26 cgd Exp $ */
|
1997-09-27 03:02:53 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright 1997 Piermont Information Systems Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Written by Philip A. Nelson for Piermont Information Systems Inc.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 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.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software develooped for the NetBSD Project by
|
|
|
|
* Piermont Information Systems Inc.
|
|
|
|
* 4. The name of Piermont Information Systems Inc. may not be used to endorse
|
|
|
|
* or promote products derived from this software without specific prior
|
|
|
|
* written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``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 PIERMONT INFORMATION SYSTEMS INC. 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, 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Menu system definitions -- machine independent
|
|
|
|
*
|
|
|
|
* Some menus may be called directly in the code rather than via the
|
|
|
|
* menu system.
|
|
|
|
*
|
|
|
|
* This file must be first in the sed command line.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
{
|
|
|
|
#include <stdio.h>
|
1999-01-21 11:02:17 +03:00
|
|
|
#include <time.h>
|
1997-09-27 03:02:53 +04:00
|
|
|
#include <curses.h>
|
|
|
|
#include "defs.h"
|
|
|
|
#include "md.h"
|
|
|
|
#include "msg_defs.h"
|
|
|
|
#include "menu_defs.h"
|
|
|
|
}
|
|
|
|
|
1999-06-20 09:44:26 +04:00
|
|
|
default y=12, no exit, scrollable;
|
1997-09-27 03:02:53 +04:00
|
|
|
|
1999-01-21 11:02:17 +03:00
|
|
|
allow dynamic menus;
|
|
|
|
|
1999-06-20 09:44:26 +04:00
|
|
|
menu netbsd, title "NetBSD-@@VERSION@@ Install System",
|
1999-06-20 06:09:20 +04:00
|
|
|
exit, exitstring "Exit Install System";
|
1997-12-04 12:05:35 +03:00
|
|
|
display action { toplevel(); };
|
1997-09-27 03:02:53 +04:00
|
|
|
option "Install NetBSD to hard disk",
|
|
|
|
action { do_install(); };
|
|
|
|
option "Upgrade NetBSD on a hard disk",
|
|
|
|
action { do_upgrade(); };
|
1997-12-05 17:00:59 +03:00
|
|
|
option "Re-install sets or install additional sets",
|
|
|
|
action { do_reinstall_sets(); };
|
1997-10-30 03:03:32 +03:00
|
|
|
option "Reboot the computer", exit,
|
1999-04-09 14:24:38 +04:00
|
|
|
action { run_prog(0, 0, NULL, "/sbin/reboot"); };
|
1997-10-30 03:03:32 +03:00
|
|
|
option "Utility menu", sub menu utility;
|
|
|
|
|
1999-06-20 06:15:22 +04:00
|
|
|
menu utility, title "NetBSD-@@VERSION@@ Utilities", exit;
|
1997-09-27 03:02:53 +04:00
|
|
|
option "Run /bin/sh",
|
1997-11-25 23:34:59 +03:00
|
|
|
action (endwin) { system("/bin/sh"); };
|
1999-04-09 14:24:38 +04:00
|
|
|
/* option "test", action { run_prog(0, 1, NULL, "/bin/pwd"); }; */
|
1997-10-22 19:28:33 +04:00
|
|
|
option "Configure network",
|
1997-12-26 04:58:44 +03:00
|
|
|
action {
|
|
|
|
extern int network_up;
|
|
|
|
|
|
|
|
network_up = 0;
|
|
|
|
config_network();
|
|
|
|
};
|
1997-11-01 02:00:32 +03:00
|
|
|
/* option "Partition a disk"; XXX add later. */
|
1999-01-21 11:02:17 +03:00
|
|
|
option "Logging functions", action { do_logging(); };
|
1997-09-27 03:02:53 +04:00
|
|
|
option "Halt the system", exit,
|
1999-04-09 14:24:38 +04:00
|
|
|
action { run_prog(0, 0, NULL, "/sbin/halt"); };
|
1997-09-27 03:02:53 +04:00
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu yesno, title "yes or no?";
|
1997-09-27 03:02:53 +04:00
|
|
|
option "Yes", exit, action {yesno = 1;};
|
|
|
|
option "No", exit, action {yesno = 0;};
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu noyes, title "yes or no?";
|
1997-09-27 03:02:53 +04:00
|
|
|
option "No", exit, action {yesno = 0;};
|
|
|
|
option "Yes", exit, action {yesno = 1;};
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu ok, title "Hit enter to continue";
|
1997-09-27 03:02:53 +04:00
|
|
|
option "ok", exit;
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu layout, title "Choose your installation";
|
1997-09-27 03:02:53 +04:00
|
|
|
option "Standard", exit, action { layoutkind = 1; };
|
|
|
|
option "Standard with X", exit, action { layoutkind = 2; };
|
|
|
|
option "Custom", exit, action { layoutkind = 3; };
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu sizechoice, title "Choose your size specifier";
|
1997-09-27 03:02:53 +04:00
|
|
|
option "Megabytes", exit, action
|
|
|
|
{ sizemult = MEG / sectorsize;
|
|
|
|
multname = msg_string(MSG_megname);
|
|
|
|
};
|
|
|
|
option "Cylinders", exit, action
|
|
|
|
{ sizemult = dlcylsize;
|
|
|
|
multname = msg_string(MSG_cylname);
|
|
|
|
};
|
|
|
|
option "Sectors", exit, action
|
|
|
|
{ sizemult = 1;
|
|
|
|
multname = msg_string(MSG_secname);
|
|
|
|
};
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu fspartok, title "Partitions ok?", y=15;
|
1997-09-27 03:02:53 +04:00
|
|
|
display action {
|
|
|
|
msg_display(MSG_fspart, multname);
|
|
|
|
disp_cur_fspart(-1, 0);
|
|
|
|
};
|
|
|
|
option "Change a partition", sub menu editfsparts;
|
1998-11-08 07:42:21 +03:00
|
|
|
option "Partitions are ok", exit;
|
1997-09-27 03:02:53 +04:00
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu edfspart, title "Change what?", exit, y=15;
|
1997-09-27 03:02:53 +04:00
|
|
|
display action {
|
|
|
|
msg_display (MSG_edfspart, 'a'+editpart);
|
|
|
|
disp_cur_fspart(editpart, 1);
|
|
|
|
};
|
|
|
|
option "FS kind", sub menu selfskind;
|
|
|
|
option "Offset/size", action
|
- Add 2 functions in label.c, getpartoff()/getpartsize() used to let the user
enter partitions offet and size. The user can chose unit independantly of
the unit used for display ('M'/'c'/'s'). These functions do the proper
bound checks and alignement/roudups. Used in the edfspart menu and
i386 md_make_bsd_partitions() (other ports should do the change as
well).
- now that getpartsize() does the rigth thing, kill the swapadj hack (which was
buggy anyway).
- in i386 md_make_bsd_partitions(), don't propose defaults that don't fit on
the disk. If the disk is too small, fallback to custom instead.
- fix a bug in mbr.c, where the partition flags would not have always been
reset. sysinst created me a MBR with 2 active partition. The boot code
doesn't like it :)
- added a message for eventual mount failures.
- killed donewfs and extracting messages, as we run the commands in a
subwindow these messages just flashed on the screen.
- Changes a few exit(1) to return(1), to give the user a second chance.
- added msg_clear() or wclear(stdscr) in a place or two, to make
display a bit nicer.
- in run_cmd(), if the command succeeded, don't wait for the user to
press enter.
1999-04-12 02:40:19 +04:00
|
|
|
{ int start, size;
|
1999-04-13 18:49:56 +04:00
|
|
|
msg_display_add(MSG_defaultunit, multname);
|
- Add 2 functions in label.c, getpartoff()/getpartsize() used to let the user
enter partitions offet and size. The user can chose unit independantly of
the unit used for display ('M'/'c'/'s'). These functions do the proper
bound checks and alignement/roudups. Used in the edfspart menu and
i386 md_make_bsd_partitions() (other ports should do the change as
well).
- now that getpartsize() does the rigth thing, kill the swapadj hack (which was
buggy anyway).
- in i386 md_make_bsd_partitions(), don't propose defaults that don't fit on
the disk. If the disk is too small, fallback to custom instead.
- fix a bug in mbr.c, where the partition flags would not have always been
reset. sysinst created me a MBR with 2 active partition. The boot code
doesn't like it :)
- added a message for eventual mount failures.
- killed donewfs and extracting messages, as we run the commands in a
subwindow these messages just flashed on the screen.
- Changes a few exit(1) to return(1), to give the user a second chance.
- added msg_clear() or wclear(stdscr) in a place or two, to make
display a bit nicer.
- in run_cmd(), if the command succeeded, don't wait for the user to
press enter.
1999-04-12 02:40:19 +04:00
|
|
|
start = getpartoff(MSG_offset, 0);
|
|
|
|
size = getpartsize(MSG_size, start, 0);
|
1997-11-01 02:00:32 +03:00
|
|
|
if (size == -1)
|
|
|
|
size = dlsize - start;
|
1999-03-31 04:44:48 +04:00
|
|
|
bsdlabel[editpart].pi_offset = start;
|
|
|
|
bsdlabel[editpart].pi_size = size;
|
1997-09-27 03:02:53 +04:00
|
|
|
};
|
|
|
|
option "Bsize/Fsize", action
|
|
|
|
{ char buf[40]; int i;
|
|
|
|
|
1999-03-31 04:44:48 +04:00
|
|
|
if (bsdlabel[editpart].pi_fstype != FS_BSDFFS) {
|
1997-09-27 03:02:53 +04:00
|
|
|
msg_display (MSG_not42bsd, 'a'+editpart);
|
|
|
|
process_menu (MENU_ok);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
msg_prompt_add (MSG_bsize, NULL, buf, 40);
|
|
|
|
i = atoi(buf);
|
1999-03-31 04:44:48 +04:00
|
|
|
bsdlabel[editpart].pi_bsize = i;
|
1997-09-27 03:02:53 +04:00
|
|
|
msg_prompt_add (MSG_fsize, NULL, buf, 40);
|
|
|
|
i = atoi(buf);
|
1999-03-31 04:44:48 +04:00
|
|
|
bsdlabel[editpart].pi_fsize = i;
|
1997-09-27 03:02:53 +04:00
|
|
|
};
|
|
|
|
option "Mount point", action
|
1999-03-31 04:44:48 +04:00
|
|
|
{ if (bsdlabel[editpart].pi_fstype == FS_BSDFFS ||
|
|
|
|
bsdlabel[editpart].pi_fstype == FS_MSDOS)
|
1997-09-27 03:02:53 +04:00
|
|
|
msg_prompt_add (MSG_mountpoint, NULL,
|
|
|
|
fsmount[editpart], 20);
|
|
|
|
else {
|
|
|
|
msg_display (MSG_nomount, 'a'+editpart);
|
|
|
|
process_menu (MENU_ok);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu selfskind, title "Select the type", y=15;
|
1997-09-27 03:02:53 +04:00
|
|
|
option "4.2BSD", exit, action
|
1999-03-31 04:44:48 +04:00
|
|
|
{ bsdlabel[editpart].pi_fstype = FS_BSDFFS;
|
|
|
|
bsdlabel[editpart].pi_bsize = 8192;
|
|
|
|
bsdlabel[editpart].pi_fsize = 1024;
|
1997-09-27 03:02:53 +04:00
|
|
|
};
|
|
|
|
option "unused", exit, action
|
1999-03-31 04:44:48 +04:00
|
|
|
{ bsdlabel[editpart].pi_fstype = FS_UNUSED;
|
|
|
|
bsdlabel[editpart].pi_bsize = 0;
|
|
|
|
bsdlabel[editpart].pi_fsize = 0;
|
1997-09-27 03:02:53 +04:00
|
|
|
};
|
|
|
|
option "swap", exit, action
|
1999-03-31 04:44:48 +04:00
|
|
|
{ bsdlabel[editpart].pi_fstype = FS_SWAP;
|
|
|
|
bsdlabel[editpart].pi_bsize = 0;
|
|
|
|
bsdlabel[editpart].pi_fsize = 0;
|
1997-09-27 03:02:53 +04:00
|
|
|
};
|
|
|
|
option "msdos", exit, action
|
1999-03-31 04:44:48 +04:00
|
|
|
{ bsdlabel[editpart].pi_fstype = FS_MSDOS;
|
|
|
|
bsdlabel[editpart].pi_bsize = 0;
|
|
|
|
bsdlabel[editpart].pi_fsize = 0;
|
1997-09-27 03:02:53 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu distmedium, title "Select medium";
|
1997-09-27 03:02:53 +04:00
|
|
|
display action { msg_display (MSG_distmedium); nodist = 0; };
|
1997-12-05 17:00:59 +03:00
|
|
|
option "ftp", action {
|
|
|
|
got_dist = get_via_ftp();
|
|
|
|
},
|
|
|
|
exit;
|
|
|
|
option "nfs", action {
|
|
|
|
got_dist = get_via_nfs();
|
|
|
|
}, exit;
|
|
|
|
option "cdrom", action {
|
|
|
|
got_dist = get_via_cdrom();
|
|
|
|
}, exit;
|
|
|
|
option "floppy", action {
|
|
|
|
got_dist = get_via_floppy();
|
|
|
|
}, exit;
|
|
|
|
option "unmounted fs", action {
|
|
|
|
got_dist = get_via_localfs();
|
|
|
|
}, exit;
|
|
|
|
option "local dir", action {
|
|
|
|
got_dist = get_via_localdir();
|
|
|
|
}, exit;
|
1997-11-04 04:39:03 +03:00
|
|
|
option "none", action { nodist = 1; }, exit;
|
1997-09-27 03:02:53 +04:00
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu distset, title "Select your distribution";
|
1997-10-29 04:06:42 +03:00
|
|
|
display action { msg_display (MSG_distset); };
|
|
|
|
option "Full installation", exit;
|
|
|
|
option "Custom installation", next menu md_distcustom;
|
1997-09-27 03:02:53 +04:00
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu ftpsource, title "Change";
|
1997-09-27 03:02:53 +04:00
|
|
|
display action
|
1999-06-19 05:10:59 +04:00
|
|
|
{ msg_display (MSG_ftpsource, ftp_host, ftp_dir, ftp_user);
|
1997-09-27 03:02:53 +04:00
|
|
|
if (strcmp(ftp_user, "ftp") == 0)
|
|
|
|
msg_printf_add ("%s", ftp_pass);
|
1999-06-19 05:10:59 +04:00
|
|
|
else if (strlen(ftp_pass) != 0)
|
|
|
|
msg_printf_add ("** hidden **", ftp_pass);
|
1997-09-27 03:02:53 +04:00
|
|
|
};
|
|
|
|
option "Host", action
|
1999-06-19 05:10:59 +04:00
|
|
|
{ msg_prompt (MSG_host, ftp_host, ftp_host, 255); };
|
1997-09-27 03:02:53 +04:00
|
|
|
option "Directory", action
|
1999-06-19 05:10:59 +04:00
|
|
|
{ msg_prompt (MSG_dir, ftp_dir, ftp_dir, 255); };
|
1997-09-27 03:02:53 +04:00
|
|
|
option "User", action
|
1999-06-19 05:10:59 +04:00
|
|
|
{ msg_prompt (MSG_user, ftp_user, ftp_user, 255); };
|
1997-09-27 03:02:53 +04:00
|
|
|
option "Password", action
|
|
|
|
{ if (strcmp(ftp_user, "ftp") == 0)
|
1999-06-19 05:10:59 +04:00
|
|
|
msg_prompt (MSG_email, ftp_pass, ftp_pass, 255);
|
1997-09-27 03:02:53 +04:00
|
|
|
else {
|
|
|
|
msg_noecho ();
|
1999-06-19 05:10:59 +04:00
|
|
|
msg_prompt (MSG_passwd, "", ftp_pass, 255);
|
1997-09-27 03:02:53 +04:00
|
|
|
msg_echo ();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
option "Get Distribution", exit;
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu nfssource, title "Change";
|
1997-10-15 08:35:17 +04:00
|
|
|
display action
|
|
|
|
{ msg_display (MSG_nfssource, nfs_host, nfs_dir); };
|
|
|
|
option "Host", action
|
|
|
|
{ msg_prompt (MSG_host, NULL, nfs_host, 255); };
|
|
|
|
option "Directory", action
|
|
|
|
{ msg_prompt (MSG_dir, NULL, nfs_dir, 255); };
|
|
|
|
option "Continue", exit;
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu nfsbadmount, title "What do you want to do?";
|
1997-10-15 08:35:17 +04:00
|
|
|
option "Try again", exit, sub menu nfssource, action
|
1997-12-05 17:00:59 +03:00
|
|
|
{ yesno = 1; ignorerror = 0; };
|
1997-10-15 08:35:17 +04:00
|
|
|
option "Give up", exit, action
|
1997-12-05 17:00:59 +03:00
|
|
|
{ yesno = 0; ignorerror = 0; };
|
|
|
|
option "Ignore, continue anyway", exit, action
|
|
|
|
{ yesno = 1; ignorerror = 1; };
|
1997-10-15 08:35:17 +04:00
|
|
|
|
1997-10-18 02:17:05 +04:00
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu fdremount, title "What do you want to do?";
|
1997-10-18 02:17:05 +04:00
|
|
|
option "Try again", exit, action { yesno = 1; };
|
|
|
|
option "Abort install", exit, action { yesno = 0; };
|
1997-10-20 10:13:25 +04:00
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu fdok, title "Hit enter to continue";
|
1997-10-30 03:03:32 +03:00
|
|
|
option "OK", exit, action { yesno = 1; };
|
|
|
|
option "Abort install", exit, action { yesno = 0; };
|
|
|
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu cdromsource, title "Change";
|
1997-10-20 10:13:25 +04:00
|
|
|
display action
|
|
|
|
{ msg_display (MSG_cdromsource, cdrom_dev, cdrom_dir); };
|
1997-10-30 03:03:32 +03:00
|
|
|
option "Device", action
|
1997-10-20 10:13:25 +04:00
|
|
|
{ msg_prompt (MSG_dev, cdrom_dev, cdrom_dev, SSTRSIZE); };
|
|
|
|
option "Directory", action
|
|
|
|
{ msg_prompt (MSG_dir, cdrom_dir, cdrom_dir, STRSIZE); };
|
|
|
|
option "Continue", exit;
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu cdrombadmount, title "What do you want to do?";
|
1997-10-20 10:13:25 +04:00
|
|
|
option "Try again", exit, sub menu cdromsource, action
|
1997-12-05 17:00:59 +03:00
|
|
|
{ yesno = 1; ignorerror = 0; };
|
1997-10-20 10:13:25 +04:00
|
|
|
option "Give up", exit, action
|
1997-12-05 17:00:59 +03:00
|
|
|
{ yesno = 0; ignorerror = 0; };
|
|
|
|
option "Ignore, continue anyway", exit, action
|
|
|
|
{ yesno = 1; ignorerror = 1; };
|
|
|
|
|
1997-11-06 01:45:53 +03:00
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu localfssource, title "Change";
|
1997-11-06 01:45:53 +03:00
|
|
|
display action
|
|
|
|
{ msg_display (MSG_localfssource, localfs_dev, localfs_fs, localfs_dir); };
|
|
|
|
option "Device", action
|
|
|
|
{ msg_prompt (MSG_dev, localfs_dev, localfs_dev, SSTRSIZE); };
|
|
|
|
option "Filesystem", action
|
|
|
|
{ msg_prompt (MSG_filesys, localfs_fs, localfs_fs, STRSIZE); };
|
|
|
|
option "Directory", action
|
|
|
|
{ msg_prompt (MSG_dir, localfs_dir, localfs_dir, STRSIZE); };
|
|
|
|
option "Continue", exit;
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu localfsbadmount, title "What do you want to do?";
|
1997-11-06 01:45:53 +03:00
|
|
|
option "Try again", exit, sub menu localfssource, action
|
1997-12-05 17:00:59 +03:00
|
|
|
{ yesno = 1; ignorerror = 0; };
|
1997-11-06 01:45:53 +03:00
|
|
|
option "Give up", exit, action
|
1997-12-05 17:00:59 +03:00
|
|
|
{ yesno = 0; ignorerror = 0; };
|
|
|
|
option "Ignore, continue anyway", exit, action
|
|
|
|
{ yesno = 1; ignorerror = 1; };
|
|
|
|
|
|
|
|
menu localdirsource, title "Change";
|
|
|
|
display action
|
|
|
|
{ msg_display(MSG_localdir, localfs_dir); };
|
|
|
|
option "Directory", action
|
|
|
|
{ msg_prompt (MSG_dir, localfs_dir, localfs_dir, STRSIZE); },
|
|
|
|
exit;
|
|
|
|
option "Continue", exit;
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
menu localdirbad, title "What do you want to do?";
|
1997-12-05 17:00:59 +03:00
|
|
|
option "Change directory path", action
|
|
|
|
{ yesno = 1;
|
|
|
|
msg_prompt(MSG_localdir, localfs_dir, localfs_dir, STRSIZE);
|
|
|
|
}, exit;
|
|
|
|
option "Give up", exit, action
|
|
|
|
{ yesno = 0; ignorerror = 0; };
|
|
|
|
option "Ignore, continue anyway", exit, action
|
|
|
|
{ yesno = 1; ignorerror = 1; };
|
|
|
|
|
1997-11-06 01:45:53 +03:00
|
|
|
|