303 lines
10 KiB
Plaintext
303 lines
10 KiB
Plaintext
/* $NetBSD: menus.mi.fr,v 1.50 2003/06/11 21:35:35 dsl Exp $ */
|
||
|
||
/*
|
||
* 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 developed 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.
|
||
*/
|
||
|
||
menu netbsd, title "NetBSD-@@VERSION@@ Programme d'installation",
|
||
exit, exitstring "Quitter le programme d'installation";
|
||
display action { toplevel(); };
|
||
option "Installation de NetBSD sur disque dur",
|
||
action { do_install(); };
|
||
option "Mise <20> jour de NetBSD sur disque dur",
|
||
action { do_upgrade(); };
|
||
option "R<>installer ou installer de nouveaux composants",
|
||
action { do_reinstall_sets(); };
|
||
option "Red<65>marrer l'ordinateur", exit,
|
||
action (endwin) { system("/sbin/reboot -q"); };
|
||
option "Menu utilitaire", sub menu utility;
|
||
|
||
menu utility, title "Utilitaires NetBSD-@@VERSION@@", exit;
|
||
/* option "test", action { run_prog(RUN_DISPLAY, NULL, "/bin/pwd"); }; */
|
||
/* option "testfalse", action { run_prog(0, "%s: kaput", "/bin/false"); }; */
|
||
option "Ex<45>cuter /bin/sh",
|
||
action (endwin) { system("/bin/sh"); };
|
||
option "Configuration du r<>seau",
|
||
action {
|
||
extern int network_up;
|
||
|
||
network_up = 0;
|
||
config_network();
|
||
};
|
||
/* option "Partitioner un disque"; XXX add later. */
|
||
option "Traces", action { do_logging(); };
|
||
option "Arr<72>ter le syst<73>me", exit,
|
||
action (endwin) { system("/sbin/halt -q"); };
|
||
|
||
menu yesno, title "oui ou non?";
|
||
option "Oui", exit, action {yesno = 1;};
|
||
option "Non", exit, action {yesno = 0;};
|
||
|
||
menu noyes, title "oui ou non?";
|
||
option "Non", exit, action {yesno = 0;};
|
||
option "Oui", exit, action {yesno = 1;};
|
||
|
||
menu ok, title "Presser entr<74>e pour continuer";
|
||
option "ok", exit;
|
||
|
||
menu layout, y=13, title "Choisissez votre type d'installation";
|
||
option "Standard", exit, action { layoutkind = 1; };
|
||
option "Use Existing", exit, action { layoutkind = 4; }; /* XXX translate me */
|
||
|
||
menu sizechoice, title "Choisissez votre unit<69> d'espace disque";
|
||
option "Megaoctets", exit, action
|
||
{ sizemult = MEG / sectorsize;
|
||
multname = msg_string(MSG_megname);
|
||
};
|
||
option "Cylindres", exit, action
|
||
{ sizemult = current_cylsize;
|
||
multname = msg_string(MSG_cylname);
|
||
};
|
||
option "Secteurs", exit, action
|
||
{ sizemult = 1;
|
||
multname = msg_string(MSG_secname);
|
||
};
|
||
|
||
menu distmedium, title "S<>lection du media d'installation";
|
||
display action { msg_display (MSG_distmedium); nodist = 0; };
|
||
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 "disquette", action {
|
||
got_dist = get_via_floppy();
|
||
}, exit;
|
||
|
||
option "systeme de fichier non-mont<6E>", action {
|
||
got_dist = get_via_localfs();
|
||
}, exit;
|
||
option "r<>pertoire local", action {
|
||
got_dist = get_via_localdir();
|
||
}, exit;
|
||
option "aucun", action { nodist = 1; }, exit;
|
||
|
||
menu distset, title "S<>lection de la distribution";
|
||
display action { msg_display (MSG_distset); };
|
||
option "Installation compl<70>te", exit;
|
||
option "Installation personnalis<69>e", exit, action { customise_sets(); };
|
||
|
||
menu ftpsource, title "Changer";
|
||
display action
|
||
{ msg_clear();
|
||
msg_table_add (MSG_ftpsource, ftp_host, ftp_dir, ftp_user,
|
||
strcmp(ftp_user, "ftp") == 0 ? ftp_pass :
|
||
strlen(ftp_pass) != 0 ? "** cach<63> **" : "",
|
||
ftp_proxy);
|
||
};
|
||
option "Serveur ftp", action
|
||
{ msg_prompt (MSG_host, ftp_host, ftp_host, 255); };
|
||
option "R<>pertoire", action
|
||
{ msg_prompt (MSG_dir, ftp_dir, ftp_dir, 255); };
|
||
option "Utilisateur", action
|
||
{ msg_prompt (MSG_user, ftp_user, ftp_user, 255);
|
||
ftp_pass[0] = '\0';
|
||
};
|
||
option "Mot de passe", action
|
||
{ if (strcmp(ftp_user, "ftp") == 0)
|
||
msg_prompt (MSG_email, ftp_pass, ftp_pass, 255);
|
||
else {
|
||
msg_prompt_noecho (MSG_passwd, "", ftp_pass, 255);
|
||
}
|
||
};
|
||
option "Proxy", action
|
||
{ msg_prompt (MSG_proxy, ftp_proxy, ftp_proxy, 255);
|
||
if (strcmp(ftp_proxy, "") == 0)
|
||
unsetenv("ftp_proxy");
|
||
else
|
||
setenv("ftp_proxy", ftp_proxy, 1);
|
||
};
|
||
option "R<>cup<75>rer la Distribution", exit;
|
||
|
||
menu nfssource, title "Changer";
|
||
display action
|
||
{ msg_display (MSG_nfssource, nfs_host, nfs_dir); };
|
||
option "Serveur nfs", action
|
||
{ msg_prompt (MSG_host, NULL, nfs_host, 255); };
|
||
option "R<>pertoire", action
|
||
{ msg_prompt (MSG_dir, NULL, nfs_dir, 255); };
|
||
option "Continuer", exit;
|
||
|
||
menu nfsbadmount, title "Que voulez vous faire?";
|
||
option "R<>essayer", exit, sub menu nfssource, action
|
||
{ yesno = 1; ignorerror = 0; };
|
||
option "Abandonner", exit, action
|
||
{ yesno = 1; ignorerror = 0; };
|
||
option "Ignorer les erreurs, continuer quand m<>me", exit, action
|
||
{ yesno = 1; ignorerror = 1; };
|
||
|
||
|
||
menu fdremount, title "Que voulez vous faire?";
|
||
option "R<>essayer", exit, action { yesno = 1; };
|
||
option "Annuler l'installation", exit, action { yesno = 0; };
|
||
|
||
menu fdok, title "Presser entr<74>e pour continuer";
|
||
option "OK", exit, action { yesno = 1; };
|
||
option "Abandonner l'installation", exit, action { yesno = 0; };
|
||
|
||
menu crypttype, title "Password cipher", y=16; /* XXX translate */
|
||
option "DES", exit, action { yesno = 1; };
|
||
option "MD5", exit, action { yesno = 2; };
|
||
option "Blowfish 2^7 round", exit, action { yesno = 3; };
|
||
option "do not change", exit, action { yesno = 0; };
|
||
|
||
|
||
menu cdromsource, title "Changer";
|
||
display action
|
||
{ msg_display (MSG_cdromsource, cdrom_dev, cdrom_dir); };
|
||
option "Device", action
|
||
{ msg_prompt (MSG_dev, cdrom_dev, cdrom_dev, SSTRSIZE); };
|
||
option "R<>pertoire", action
|
||
{ msg_prompt (MSG_dir, cdrom_dir, cdrom_dir, STRSIZE); };
|
||
option "Continuer", exit;
|
||
|
||
menu cdrombadmount, title "Que voulez-vous faire?";
|
||
option "R<>essayer", exit, sub menu cdromsource, action
|
||
{ yesno = 1; ignorerror = 0; };
|
||
option "Abandonner", exit, action
|
||
{ yesno = 0; ignorerror = 0; };
|
||
option "Ignorer les erreurs, continuer quand m<>me", exit, action
|
||
{ yesno = 1; ignorerror = 1; };
|
||
|
||
menu localfssource, title "Changer";
|
||
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 "Syst<73>me de fichier", action
|
||
{ msg_prompt (MSG_filesys, localfs_fs, localfs_fs, STRSIZE); };
|
||
option "R<>pertoire", action
|
||
{ msg_prompt (MSG_dir, localfs_dir, localfs_dir, STRSIZE); };
|
||
option "Continuer", exit;
|
||
|
||
menu localfsbadmount, title "Que voulez vous faire?";
|
||
option "R<>essayer", exit, sub menu localfssource, action
|
||
{ yesno = 1; ignorerror = 0; };
|
||
option "Abandonner", exit, action
|
||
{ yesno = 1; ignorerror = 0; };
|
||
option "Ignorer les erreurs, continuer quand m<>me", exit, action
|
||
{ yesno = 1; ignorerror = 1; };
|
||
|
||
menu localdirsource, title "Changer";
|
||
display action
|
||
{ msg_display(MSG_localdir, localfs_dir); };
|
||
option "R<>pertoire", action
|
||
{ msg_prompt (MSG_dir, localfs_dir, localfs_dir, STRSIZE); },
|
||
exit;
|
||
option "Continuer", exit;
|
||
|
||
menu localdirbad, title "Que voulez vous faire?";
|
||
option "Changer le chemin d'acc<63>s", action
|
||
{ yesno = 1;
|
||
msg_prompt(MSG_localdir, localfs_dir, localfs_dir, STRSIZE);
|
||
}, exit;
|
||
option "Abandonner", exit, action
|
||
{ yesno = 0; ignorerror = 0; };
|
||
option "Ignorer les erreurs, continuer quand m<>me", exit, action
|
||
{ yesno = 1; ignorerror = 1; };
|
||
|
||
menu namesrv6, title " Choisissez un serveur de noms IPv6 :";
|
||
option "ns9.iij.ad.jp", exit, action
|
||
{
|
||
#ifdef INET6
|
||
strlcpy(net_namesvr6, "2001:240::1", sizeof(net_namesvr6));
|
||
yesno = 1;
|
||
#else
|
||
yesno = 0;
|
||
#endif
|
||
};
|
||
option "ns-wide.wide.ad.jp", exit, action
|
||
{
|
||
#ifdef INET6
|
||
strlcpy(net_namesvr6, "2001:200:0:1::3", sizeof(net_namesvr6));
|
||
yesno = 1;
|
||
#else
|
||
yesno = 0;
|
||
#endif
|
||
};
|
||
option "light.imasy.or.jp", exit, action
|
||
{
|
||
#ifdef INET6
|
||
strlcpy(net_namesvr6, "3ffe:505:0:1:2a0:c9ff:fe61:6521",
|
||
sizeof(net_namesvr6));
|
||
yesno = 1;
|
||
#else
|
||
yesno = 0;
|
||
#endif
|
||
};
|
||
option "other ", exit, action
|
||
{ yesno = 0; };
|
||
|
||
menu ip6autoconf, title "Faire la configuration automatique IPv6 ?";
|
||
option "Oui", exit, action {yesno = 1;};
|
||
option "Non", exit, action {yesno = 0;};
|
||
|
||
menu dhcpautoconf, title "Ex<45>cutez la configuration automatique de DHCP?";
|
||
option "Oui", exit, action {yesno = 1;};
|
||
option "Non", exit, action {yesno = 0;};
|
||
|
||
menu rootsh, title "Root shell"; /* XXX translate */
|
||
option "/bin/csh", exit, action {shellpath = "/bin/csh";};
|
||
option "/bin/ksh", exit, action {shellpath = "/bin/ksh";};
|
||
option "/bin/sh", exit, action {shellpath = "/bin/sh";};
|
||
|
||
menu extract, title "Methode d'indication de l'extraction d'ensemble ?";
|
||
option "Thermometre (recommende<64>)", exit, action { yesno = 1; };
|
||
option "Silencieux", exit, action { yesno = 0; };
|
||
option "Liste verbeuse des fichiers (lent)", exit, action
|
||
{ yesno = 2; };
|