From 8905bd306e55ccfa2a8ee59d95e9ed5bc3785f8a Mon Sep 17 00:00:00 2001 From: jkh Date: Tue, 29 Feb 2000 10:40:59 +0000 Subject: o Add support for loading the rsaref or rsaintl packages, depending on locale. o Allow use of "G" in label editor to stand for gigabytes. This is actually an unrelated patch which I meant to commit separately but what the heck, it's late. Partially submitted by: phk --- usr.sbin/sysinstall/install.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'usr.sbin/sysinstall/install.c') diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c index 83972b0..7c27138 100644 --- a/usr.sbin/sysinstall/install.c +++ b/usr.sbin/sysinstall/install.c @@ -565,6 +565,35 @@ nodisks: (void)configLinux(self); #endif + dialog_clear(); + if (USAResident) { + if (!msgYesNo("I see that you are \"USA_RESIDENT\" according to your earlier\n" + "response to the CRYPTO distribution dialog. Do you want to try and\n" + "load the rsaref package from the current media? Some restrictions on\n" + "usage may apply, so be sure to read the package installation output!")) { + PkgInteractive = TRUE; + dialog_clear(); + if (DITEM_STATUS(package_add("rsaref")) != DITEM_SUCCESS) { + msgConfirm("Unable to find an rsaref package on the current intallation media.\n" + "You may wish to switch media types and try again, perhaps\n" + "from an FTP server which carries this package."); + } + PkgInteractive = FALSE; + dialog_clear(); + } + } + else { + if (!msgYesNo("I see that you are not \"USA_RESIDENT\" according to your earlier\n" + "response to the CRYPTO distribution dialog. Do you want to try and\n" + "load the rsaintl package from the current media?")) { + if (DITEM_STATUS(package_add("rsaintl")) != DITEM_SUCCESS) { + msgConfirm("Unable to find an rsaintl package on the current intallation media.\n" + "You may wish to switch media types and try again, perhaps\n" + "from an FTP server which carries this package."); + } + } + } + dialog_clear_norefresh(); if (!msgYesNo("Does this system have a mouse attached to it?")) dmenuOpenSimple(&MenuMouse, FALSE); -- cgit v1.1