diff options
author | jkh <jkh@FreeBSD.org> | 2000-02-17 06:15:11 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 2000-02-17 06:15:11 +0000 |
commit | 0bc86ddfd45979a5ae4028b1b5149416bcc55f5a (patch) | |
tree | 318a6bdeb82e713396ae1bccecfe8b1f18e4faad /usr.sbin | |
parent | c7368ef6fd83fa739bbd8db5329bf2abad556cdc (diff) | |
download | FreeBSD-src-0bc86ddfd45979a5ae4028b1b5149416bcc55f5a.zip FreeBSD-src-0bc86ddfd45979a5ae4028b1b5149416bcc55f5a.tar.gz |
Various cosmetic fixes, stop saying "DES" when we really mean "crypto",
go for more sensible defaults in a couple of menus.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sade/config.c | 7 | ||||
-rw-r--r-- | usr.sbin/sade/menus.c | 20 | ||||
-rw-r--r-- | usr.sbin/sysinstall/config.c | 7 | ||||
-rw-r--r-- | usr.sbin/sysinstall/dist.c | 28 | ||||
-rw-r--r-- | usr.sbin/sysinstall/menus.c | 20 |
5 files changed, 45 insertions, 37 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index 2d4028c..9ce954d 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/config.c @@ -458,6 +458,7 @@ configLinux(dialogMenuItem *self) dialog_clear_norefresh(); variable_set2(VAR_LINUX_ENABLE, "YES", 1); + Mkdir("/compat/linux"); msgNotify("Installing Linux compatibility library..."); i = package_add("linux_base"); restorescr(w); @@ -744,7 +745,7 @@ extern PkgNode Top, Plist; int configPackages(dialogMenuItem *self) { - int i; + int i, restoreflag = 0; PkgNodePtr tmp; /* Did we get an INDEX? */ @@ -766,6 +767,8 @@ configPackages(dialogMenuItem *self) if (ret & DITEM_LEAVE_MENU) break; else if (DITEM_STATUS(ret) != DITEM_FAILURE) { + dialog_clear(); + restoreflag = 1; for (tmp = Plist.kids; tmp && tmp->name; tmp = tmp->next) (void)index_extract(mediaDevice, &Top, tmp, FALSE); break; @@ -784,7 +787,7 @@ configPackages(dialogMenuItem *self) tmp = tmp2; } index_init(NULL, &Plist); - return DITEM_SUCCESS; + return DITEM_SUCCESS | (restoreflag ? DITEM_RESTORE : 0); } /* Load pcnfsd package */ diff --git a/usr.sbin/sade/menus.c b/usr.sbin/sade/menus.c index 92ff4c1..52e1239 100644 --- a/usr.sbin/sade/menus.c +++ b/usr.sbin/sade/menus.c @@ -414,18 +414,18 @@ DMenu MenuMousePort = { "a PS/2 style device.", NULL, NULL, - { { "1 COM1", "Serial mouse on COM1 (/dev/cuaa0)", + { { "1 PS/2", "PS/2 style mouse (/dev/psm0)", + dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/psm0" }, + { "2 COM1", "Serial mouse on COM1 (/dev/cuaa0)", dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa0" }, - { "2 COM2", "Serial mouse on COM2 (/dev/cuaa1)", + { "3 COM2", "Serial mouse on COM2 (/dev/cuaa1)", dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa1" }, - { "3 COM3", "Serial mouse on COM3 (/dev/cuaa2)", + { "4 COM3", "Serial mouse on COM3 (/dev/cuaa2)", dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa2" }, - { "4 COM4", "Serial mouse on COM4 (/dev/cuaa3)", + { "5 COM4", "Serial mouse on COM4 (/dev/cuaa3)", dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa3" }, - { "5 BusMouse", "Logitech, ATI or MS bus mouse (/dev/mse0)", + { "6 BusMouse", "Logitech, ATI or MS bus mouse (/dev/mse0)", dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/mse0" }, - { "6 PS/2", "PS/2 style mouse (/dev/psm0)", - dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/psm0" }, { NULL } }, }; @@ -443,9 +443,9 @@ DMenu MenuMouse = { NULL, NULL, { { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit }, - { "1 Type", "Select mouse protocol type", NULL, dmenuSubmenu, NULL, &MenuMouseType }, - { "2 Port", "Select mouse port", NULL, dmenuSubmenu, NULL, &MenuMousePort }, - { "3 Enable", "Test and run the mouse daemon", NULL, mousedTest, NULL, NULL }, + { "1 Enable", "Test and run the mouse daemon", NULL, mousedTest, NULL, NULL }, + { "2 Type", "Select mouse protocol type", NULL, dmenuSubmenu, NULL, &MenuMouseType }, + { "3 Port", "Select mouse port", NULL, dmenuSubmenu, NULL, &MenuMousePort }, { "4 Disable", "Disable the mouse daemon", NULL, mousedDisable, NULL, NULL }, { NULL } }, }; diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c index 2d4028c..9ce954d 100644 --- a/usr.sbin/sysinstall/config.c +++ b/usr.sbin/sysinstall/config.c @@ -458,6 +458,7 @@ configLinux(dialogMenuItem *self) dialog_clear_norefresh(); variable_set2(VAR_LINUX_ENABLE, "YES", 1); + Mkdir("/compat/linux"); msgNotify("Installing Linux compatibility library..."); i = package_add("linux_base"); restorescr(w); @@ -744,7 +745,7 @@ extern PkgNode Top, Plist; int configPackages(dialogMenuItem *self) { - int i; + int i, restoreflag = 0; PkgNodePtr tmp; /* Did we get an INDEX? */ @@ -766,6 +767,8 @@ configPackages(dialogMenuItem *self) if (ret & DITEM_LEAVE_MENU) break; else if (DITEM_STATUS(ret) != DITEM_FAILURE) { + dialog_clear(); + restoreflag = 1; for (tmp = Plist.kids; tmp && tmp->name; tmp = tmp->next) (void)index_extract(mediaDevice, &Top, tmp, FALSE); break; @@ -784,7 +787,7 @@ configPackages(dialogMenuItem *self) tmp = tmp2; } index_init(NULL, &Plist); - return DITEM_SUCCESS; + return DITEM_SUCCESS | (restoreflag ? DITEM_RESTORE : 0); } /* Load pcnfsd package */ diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c index f276271..5ada8b7 100644 --- a/usr.sbin/sysinstall/dist.c +++ b/usr.sbin/sysinstall/dist.c @@ -392,17 +392,16 @@ distMaybeSetDES(dialogMenuItem *self) int i = DITEM_SUCCESS | DITEM_REDRAW; dialog_clear_norefresh(); - if (!msgYesNo("Do you wish to install DES cryptographic software?\n\n" + if (!msgYesNo("Do you wish to install cryptographic software?\n\n" "If you choose No, FreeBSD will use an MD5 based password scheme which,\n" "while perhaps more secure, is not interoperable with the traditional\n" - "UNIX DES passwords on other non-FreeBSD systems.\n\n" + "UNIX DES passwords on other Unix systems. There will also be some\n" + "differences in the type of RSA code you use.\n\n" "Please do NOT choose Yes at this point if you are outside the\n" "United States and Canada yet are installing from a U.S. FTP server.\n" - "This will violate U.S. export restrictions and possibly get the\n" - "server site into trouble! In such cases, install everything but the\n" - "DES distribution from the U.S. server then switch your media type to\n" - "point to an international FTP server, using the Custom installation\n" - "option to select and extract the DES distribution in a second pass.")) { + "Instead, install everything BUT the crypto bits from the U.S. site\n" + "and then switch to an international FTP server to install them on\n" + "a second pass using the Custom Installation option.")) { if (!dmenuOpenSimple(&MenuDESDistributions, FALSE)) i = DITEM_FAILURE; } @@ -415,13 +414,13 @@ distMaybeSetPorts(dialogMenuItem *self) { dialog_clear_norefresh(); if (!msgYesNo("Would you like to install the FreeBSD ports collection?\n\n" - "This will give you ready access to over 2000 ported software packages,\n" - "though at a cost of around 90MB of disk space when \"clean\" and possibly\n" - "much more than that if a lot of the distribution tarballs are loaded\n" + "This will give you ready access to over 3000 ported software packages,\n" + "at a cost of around 70MB of disk space when \"clean\" and possibly\n" + "much more than that when a lot of the distribution tarballs are loaded\n" "(unless you have the extra CDs available from a FreeBSD CDROM distribution\n" "and can mount them on /cdrom, in which case this is far less of a problem).\n\n" - "The ports collection is a very valuable resource and, if you have at least\n" - "100MB to spare in your /usr partition, well worth having around.\n\n" + "The ports collection is a very valuable resource and well worth having" + "on your /usr partition, so it is advisable to say Yes to this option.\n\n" "For more information on the ports collection & the latest ports, visit:\n" " http://www.freebsd.org/ports\n")) Dists |= DIST_PORTS; @@ -879,9 +878,12 @@ printSelected(char *buf, int selected, Distribution *me, int *col) int distExtractAll(dialogMenuItem *self) { - int old_dists, retries = 0, status = DITEM_SUCCESS, want_x_package = 0; + int old_dists, retries = 0, status = DITEM_SUCCESS; char buf[512]; WINDOW *w; +#ifdef X_AS_PKG + int want_x_package = 0; +#endif /* paranoia */ if (!Dists) { diff --git a/usr.sbin/sysinstall/menus.c b/usr.sbin/sysinstall/menus.c index 92ff4c1..52e1239 100644 --- a/usr.sbin/sysinstall/menus.c +++ b/usr.sbin/sysinstall/menus.c @@ -414,18 +414,18 @@ DMenu MenuMousePort = { "a PS/2 style device.", NULL, NULL, - { { "1 COM1", "Serial mouse on COM1 (/dev/cuaa0)", + { { "1 PS/2", "PS/2 style mouse (/dev/psm0)", + dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/psm0" }, + { "2 COM1", "Serial mouse on COM1 (/dev/cuaa0)", dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa0" }, - { "2 COM2", "Serial mouse on COM2 (/dev/cuaa1)", + { "3 COM2", "Serial mouse on COM2 (/dev/cuaa1)", dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa1" }, - { "3 COM3", "Serial mouse on COM3 (/dev/cuaa2)", + { "4 COM3", "Serial mouse on COM3 (/dev/cuaa2)", dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa2" }, - { "4 COM4", "Serial mouse on COM4 (/dev/cuaa3)", + { "5 COM4", "Serial mouse on COM4 (/dev/cuaa3)", dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/cuaa3" }, - { "5 BusMouse", "Logitech, ATI or MS bus mouse (/dev/mse0)", + { "6 BusMouse", "Logitech, ATI or MS bus mouse (/dev/mse0)", dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/mse0" }, - { "6 PS/2", "PS/2 style mouse (/dev/psm0)", - dmenuVarCheck, dmenuSetVariable, NULL, VAR_MOUSED_PORT "=/dev/psm0" }, { NULL } }, }; @@ -443,9 +443,9 @@ DMenu MenuMouse = { NULL, NULL, { { "X Exit", "Exit this menu (returning to previous)", NULL, dmenuExit }, - { "1 Type", "Select mouse protocol type", NULL, dmenuSubmenu, NULL, &MenuMouseType }, - { "2 Port", "Select mouse port", NULL, dmenuSubmenu, NULL, &MenuMousePort }, - { "3 Enable", "Test and run the mouse daemon", NULL, mousedTest, NULL, NULL }, + { "1 Enable", "Test and run the mouse daemon", NULL, mousedTest, NULL, NULL }, + { "2 Type", "Select mouse protocol type", NULL, dmenuSubmenu, NULL, &MenuMouseType }, + { "3 Port", "Select mouse port", NULL, dmenuSubmenu, NULL, &MenuMousePort }, { "4 Disable", "Disable the mouse daemon", NULL, mousedDisable, NULL, NULL }, { NULL } }, }; |