version 1.43, 2011/10/30 00:30:56 |
version 1.43.2.3, 2014/05/22 12:01:35 |
Line 162 menu netbsd, title MSG_NetBSD_VERSION_In |
|
Line 162 menu netbsd, title MSG_NetBSD_VERSION_In |
|
option MSG_Reboot_the_computer, exit, |
option MSG_Reboot_the_computer, exit, |
action (endwin) { system("/sbin/reboot -q"); }; |
action (endwin) { system("/sbin/reboot -q"); }; |
option MSG_Utility_menu, sub menu utility; |
option MSG_Utility_menu, sub menu utility; |
|
option MSG_Config_menu, action { do_configmenu(); }; |
|
|
menu utility, title MSG_NetBSD_VERSION_Utilities, exit, |
menu utility, title MSG_NetBSD_VERSION_Utilities, exit, |
exitstring MSG_exit_utility_menu; |
exitstring MSG_exit_utility_menu; |
Line 246 menu ftpsource, y=-4, x=0, w=70, no box, |
|
Line 247 menu ftpsource, y=-4, x=0, w=70, no box, |
|
action { src_prompt(MSG_Host, ftp.host, sizeof ftp.host); }; |
action { src_prompt(MSG_Host, ftp.host, sizeof ftp.host); }; |
option {src_legend(menu, MSG_Base_dir, ftp.dir);}, |
option {src_legend(menu, MSG_Base_dir, ftp.dir);}, |
action { src_prompt(MSG_Base_dir, ftp.dir, sizeof ftp.dir); }; |
action { src_prompt(MSG_Base_dir, ftp.dir, sizeof ftp.dir); }; |
option {src_legend(menu, MSG_Set_dir, set_dir);}, |
option {src_legend(menu, MSG_Set_dir_bin, set_dir_bin);}, |
action { src_prompt(MSG_Set_dir, set_dir, sizeof set_dir); }; |
action { src_prompt(MSG_Set_dir_bin, set_dir_bin, sizeof set_dir_bin); }; |
|
option {src_legend(menu, MSG_Set_dir_src, set_dir_src);}, |
|
action { src_prompt(MSG_Set_dir_src, set_dir_src, sizeof set_dir_src); }; |
option {src_legend(menu, MSG_User, ftp.user);}, |
option {src_legend(menu, MSG_User, ftp.user);}, |
action { src_prompt(MSG_User, ftp.user, sizeof ftp.user); |
action { src_prompt(MSG_User, ftp.user, sizeof ftp.user); |
ftp.pass[0] = 0; |
ftp.pass[0] = 0; |
Line 279 menu ftpsource, y=-4, x=0, w=70, no box, |
|
Line 282 menu ftpsource, y=-4, x=0, w=70, no box, |
|
action {process_menu(MENU_yesno, deconst(MSG_delete_xfer_file)); |
action {process_menu(MENU_yesno, deconst(MSG_delete_xfer_file)); |
clean_xfer_dir = yesno; }; |
clean_xfer_dir = yesno; }; |
|
|
|
|
menu nfssource, y=-4, x=0, w=70, no box, no clear, |
menu nfssource, y=-4, x=0, w=70, no box, no clear, |
exitstring MSG_Continue; |
exitstring MSG_Continue; |
display action { msg_display(MSG_nfssource); }; |
display action { msg_display(MSG_nfssource); }; |
Line 286 menu nfssource, y=-4, x=0, w=70, no box, |
|
Line 290 menu nfssource, y=-4, x=0, w=70, no box, |
|
action { src_prompt(MSG_Host, nfs_host, sizeof nfs_host); }; |
action { src_prompt(MSG_Host, nfs_host, sizeof nfs_host); }; |
option {src_legend(menu, MSG_Base_dir, nfs_dir);}, |
option {src_legend(menu, MSG_Base_dir, nfs_dir);}, |
action { src_prompt(MSG_Base_dir, nfs_dir, sizeof nfs_dir); }; |
action { src_prompt(MSG_Base_dir, nfs_dir, sizeof nfs_dir); }; |
option {src_legend(menu, MSG_Set_dir, set_dir);}, |
option {src_legend(menu, MSG_Set_dir_bin, set_dir_bin);}, |
action { src_prompt(MSG_Set_dir, set_dir, sizeof set_dir); }; |
action { src_prompt(MSG_Set_dir_bin, set_dir_bin, sizeof set_dir_bin); }; |
|
option {src_legend(menu, MSG_Set_dir_src, set_dir_src);}, |
|
action { src_prompt(MSG_Set_dir_src, set_dir_src, sizeof set_dir_src); }; |
|
|
menu fdremount, title MSG_What_do_you_want_to_do; |
menu fdremount, title MSG_What_do_you_want_to_do; |
option MSG_Try_again, exit, action { *(int *)arg = SET_CONTINUE; }; |
option MSG_Try_again, exit, action { *(int *)arg = SET_CONTINUE; }; |
Line 319 menu floppysource, y=-4, x=0, w=70, no b |
|
Line 325 menu floppysource, y=-4, x=0, w=70, no b |
|
clean_xfer_dir = yesno; }; |
clean_xfer_dir = yesno; }; |
|
|
menu cdromsource, y=-4, x=0, w=70, no box, no clear, exitstring MSG_Continue; |
menu cdromsource, y=-4, x=0, w=70, no box, no clear, exitstring MSG_Continue; |
display action { msg_display_add(MSG_cdromsource); }; |
display action { msg_display(MSG_cdromsource); }; |
option {src_legend(menu, MSG_Device, cdrom_dev);}, |
option {src_legend(menu, MSG_Device, cdrom_dev);}, |
action { src_prompt(MSG_dev, cdrom_dev, sizeof cdrom_dev); }; |
action { src_prompt(MSG_dev, cdrom_dev, sizeof cdrom_dev); }; |
option {src_legend(menu, MSG_Set_dir, set_dir);}, |
option {src_legend(menu, MSG_Set_dir_bin, set_dir_bin);}, |
action { src_prompt(MSG_Set_dir, set_dir, sizeof set_dir); }; |
action { src_prompt(MSG_Set_dir_bin, set_dir_bin, sizeof set_dir_bin); }; |
|
option {src_legend(menu, MSG_Set_dir_src, set_dir_src);}, |
|
action { src_prompt(MSG_Set_dir_src, set_dir_src, sizeof set_dir_src); }; |
|
|
menu localfssource, y=-4, x=0, w=70, no box, no clear, exitstring MSG_Continue; |
menu localfssource, y=-4, x=0, w=70, no box, no clear, exitstring MSG_Continue; |
display action { msg_display(MSG_localfssource); }; |
display action { msg_display(MSG_localfssource); }; |
Line 333 menu localfssource, y=-4, x=0, w=70, no |
|
Line 341 menu localfssource, y=-4, x=0, w=70, no |
|
action { src_prompt(MSG_filesys, localfs_fs, sizeof localfs_fs); }; |
action { src_prompt(MSG_filesys, localfs_fs, sizeof localfs_fs); }; |
option {src_legend(menu, MSG_Base_dir, localfs_dir);}, |
option {src_legend(menu, MSG_Base_dir, localfs_dir);}, |
action { src_prompt(MSG_Base_dir, localfs_dir, sizeof localfs_dir);}; |
action { src_prompt(MSG_Base_dir, localfs_dir, sizeof localfs_dir);}; |
option {src_legend(menu, MSG_Set_dir, set_dir);}, |
option {src_legend(menu, MSG_Set_dir_bin, set_dir_bin);}, |
action { src_prompt(MSG_Set_dir, set_dir, sizeof set_dir); }; |
action { src_prompt(MSG_Set_dir_bin, set_dir_bin, sizeof set_dir_bin); }; |
|
option {src_legend(menu, MSG_Set_dir_src, set_dir_src);}, |
|
action { src_prompt(MSG_Set_dir_src, set_dir_src, sizeof set_dir_src); }; |
|
|
menu localdirsource, y=-4, x=0, w=70, no box, no clear, exitstring MSG_Continue; |
menu localdirsource, y=-4, x=0, w=70, no box, no clear, exitstring MSG_Continue; |
display action { msg_display(MSG_localdir); }; |
display action { msg_display(MSG_localdir); }; |
option {src_legend(menu, MSG_Base_dir, localfs_dir);}, |
option {src_legend(menu, MSG_Base_dir, localfs_dir);}, |
action { src_prompt(MSG_Base_dir, localfs_dir, 60); }; |
action { src_prompt(MSG_Base_dir, localfs_dir, 60); }; |
option {src_legend(menu, MSG_Set_dir, set_dir);}, |
option {src_legend(menu, MSG_Set_dir_bin, set_dir_bin);}, |
action { src_prompt(MSG_Set_dir, set_dir, 60); }; |
action { src_prompt(MSG_Set_dir_bin, set_dir_bin, 60); }; |
|
option {src_legend(menu, MSG_Set_dir_src, set_dir_src);}, |
|
action { src_prompt(MSG_Set_dir_src, set_dir_src, 60); }; |
|
|
menu namesrv6, title MSG_Select_IPv6_DNS_server; |
menu namesrv6, title MSG_Select_IPv6_DNS_server; |
option "google-public-dns-a.google.com", exit, action |
option "google-public-dns-a.google.com", exit, action |
Line 367 menu namesrv6, title MSG_Select_IPv6_DNS |
|
Line 379 menu namesrv6, title MSG_Select_IPv6_DNS |
|
option MSG_other, exit, action |
option MSG_other, exit, action |
{ yesno = 0; }; |
{ yesno = 0; }; |
|
|
menu rootsh, title MSG_Root_shell; |
menu rootsh, title MSG_Root_shell, no clear; |
option "/bin/sh", exit, action {*(const char **)arg = "/bin/sh";}; |
option "/bin/sh", exit, action {*(const char **)arg = "/bin/sh";}; |
option "/bin/ksh", exit, action {*(const char **)arg = "/bin/ksh";}; |
option "/bin/ksh", exit, action {*(const char **)arg = "/bin/ksh";}; |
option "/bin/csh", exit, action {*(const char **)arg = "/bin/csh";}; |
option "/bin/csh", exit, action {*(const char **)arg = "/bin/csh";}; |
|
|
|
menu zeroconf, title "Zeroconf", no clear; |
|
option "run mdnsd only", exit, action {*(const char **)arg = "mdnsd";}; |
|
option "run mdnsd and resolve local names", exit, action {*(const char **) arg = "mdnsd+nsswitch";}; |
|
option "do not run mdnsd", exit, action {*(const char **)arg = "No";}; |
|
|
|
menu binpkg, y=-4, x=0, w=70, no box, no clear, |
|
exitstring MSG_Install_pkgin; |
|
display action { msg_display(MSG_pkgpath); }; |
|
option {src_legend(menu, MSG_Host, pkg.host);}, |
|
action { src_prompt(MSG_Host, pkg.host, sizeof pkg.host); }; |
|
option {src_legend(menu, MSG_Base_dir, pkg.dir);}, |
|
action { src_prompt(MSG_Base_dir, pkg.dir, sizeof pkg.dir); }; |
|
option {src_legend(menu, MSG_Pkg_dir, pkg_dir);}, |
|
action { src_prompt(MSG_Pkg_dir, pkg_dir, sizeof pkg_dir); }; |
|
option {src_legend(menu, MSG_User, pkg.user);}, |
|
action { src_prompt(MSG_User, pkg.user, sizeof pkg.user); |
|
pkg.pass[0] = 0; |
|
}; |
|
option {src_legend(menu, MSG_Password, |
|
strcmp(pkg.user, "ftp") == 0 || pkg.pass[0] == 0 |
|
? pkg.pass : msg_string(MSG_hidden));}, |
|
action { if (strcmp(pkg.user, "ftp") == 0) |
|
src_prompt(MSG_email, pkg.pass, sizeof pkg.pass); |
|
else { |
|
msg_prompt_noecho(MSG_Password, "", |
|
pkg.pass, sizeof pkg.pass); |
|
} |
|
}; |
|
option {src_legend(menu, MSG_Proxy, pkg.proxy);}, |
|
action { src_prompt(MSG_Proxy, pkg.proxy, sizeof pkg.proxy); |
|
if (strcmp(pkg.proxy, "") == 0) { |
|
unsetenv("ftp_proxy"); |
|
unsetenv("http_proxy"); |
|
} else { |
|
setenv("ftp_proxy", pkg.proxy, 1); |
|
setenv("http_proxy", pkg.proxy, 1); |
|
} |
|
}; |
|
|
|
menu pkgsrc, y=-4, x=0, w=70, no box, no clear, |
|
exit, exitstring MSG_Install_pkgsrc; |
|
display action { msg_display(MSG_pkgsrc); }; |
|
option {src_legend(menu, MSG_Host, pkgsrc.host);}, |
|
action { src_prompt(MSG_Host, pkgsrc.host, |
|
sizeof pkgsrc.host); }; |
|
option {src_legend(menu, MSG_Pkgsrc_dir, pkgsrc_dir);}, |
|
action { src_prompt(MSG_Pkgsrc_dir, pkgsrc_dir, sizeof pkgsrc_dir); }; |
|
option {src_legend(menu, MSG_User, pkgsrc.user);}, |
|
action { src_prompt(MSG_User, pkgsrc.user, sizeof pkgsrc.user); |
|
pkgsrc.pass[0] = 0; |
|
}; |
|
option {src_legend(menu, MSG_Password, |
|
strcmp(pkgsrc.user, "ftp") == 0 || pkgsrc.pass[0] == 0 |
|
? pkgsrc.pass : msg_string(MSG_hidden));}, |
|
action { if (strcmp(pkgsrc.user, "ftp") == 0) |
|
src_prompt(MSG_email, pkgsrc.pass, sizeof pkgsrc.pass); |
|
else { |
|
msg_prompt_noecho(MSG_Password, "", |
|
pkgsrc.pass, sizeof pkgsrc.pass); |
|
} |
|
}; |
|
option {src_legend(menu, MSG_Proxy, pkgsrc.proxy);}, |
|
action { src_prompt(MSG_Proxy, pkgsrc.proxy, sizeof pkgsrc.proxy); |
|
if (strcmp(pkgsrc.proxy, "") == 0) { |
|
unsetenv("ftp_proxy"); |
|
unsetenv("http_proxy"); |
|
} else { |
|
setenv("ftp_proxy", pkgsrc.proxy, 1); |
|
setenv("http_proxy", pkgsrc.proxy, 1); |
|
} |
|
}; |
|
option {src_legend(menu, MSG_Xfer_dir, xfer_dir);}, |
|
action { src_prompt(MSG_Xfer_dir, xfer_dir, sizeof xfer_dir); }; |
|
option {src_legend(menu, MSG_delete_xfer_file, |
|
clean_xfer_dir ? MSG_Yes : MSG_No);}, |
|
action {process_menu(MENU_yesno, deconst(MSG_delete_xfer_file)); |
|
clean_xfer_dir = yesno; }; |
|
option MSG_quit_pkgsrc, exit, action { yesno = 0;}; |
|
|
|
menu usersh, title MSG_User_shell, no clear; |
|
option "/bin/sh", exit, action { ushell = "/bin/sh";}; |
|
option "/bin/ksh", exit, action { ushell = "/bin/ksh";}; |
|
option "/bin/csh", exit, action { ushell = "/bin/csh";}; |