summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/install.c
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2003-05-31 11:28:28 +0000
committerscottl <scottl@FreeBSD.org>2003-05-31 11:28:28 +0000
commitf2f79e8c3fd78874b7ac71ce17f19bb9f33d3061 (patch)
treec06dcb8d11c76b020851d24a3b934b48b7a7f5e0 /usr.sbin/sade/install.c
parent049e6a81c83ff5402bd64c65dc6f591e7bfb003e (diff)
downloadFreeBSD-src-f2f79e8c3fd78874b7ac71ce17f19bb9f33d3061.zip
FreeBSD-src-f2f79e8c3fd78874b7ac71ce17f19bb9f33d3061.tar.gz
Teach sysinstall to recognize if acpi was turned off from the bootloader,
and then ask the user if this should be made permanent. Approved by: re
Diffstat (limited to 'usr.sbin/sade/install.c')
-rw-r--r--usr.sbin/sade/install.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index 2a0e0be..acc53f8 100644
--- a/usr.sbin/sade/install.c
+++ b/usr.sbin/sade/install.c
@@ -666,6 +666,15 @@ nodisks:
dmenuOpenSimple(&MenuMouse, FALSE);
#endif
+#ifdef __i386__
+ if (checkLoaderACPI() != 0) {
+ dialog_clear_norefresh();
+ if (!msgNoYes("ACPI was disabled during boot.\n"
+ "Would you like to disable it permanently?"))
+ (void)configLoaderACPI(1 /*disable*/);
+ }
+#endif
+
/* Now would be a good time to checkpoint the configuration data */
configRC_conf();
sync();
OpenPOWER on IntegriCloud