From d8720a64b20258b8a7a761ec435462e78df59474 Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 27 Nov 2002 19:25:46 +0000 Subject: [PATCH] Only display the APM option in the Startup menu on i386. Approved by: re --- usr.sbin/sade/menus.c | 2 ++ usr.sbin/sysinstall/menus.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/usr.sbin/sade/menus.c b/usr.sbin/sade/menus.c index 91d8033629c4..8e265e9f532f 100644 --- a/usr.sbin/sade/menus.c +++ b/usr.sbin/sade/menus.c @@ -1448,8 +1448,10 @@ DMenu MenuStartup = { NULL, { { "X Exit", "Exit this menu (returning to previous)", checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' }, +#ifdef __i386__ { " APM", "Auto-power management services (typically laptops)", dmenuVarCheck, dmenuToggleVariable, NULL, "apm_enable=YES" }, +#endif #ifdef PCCARD_ARCH { " pccard", "Enable PCCARD (AKA PCMCIA) services (also laptops)", dmenuVarCheck, dmenuToggleVariable, NULL, "pccard_enable=YES" }, diff --git a/usr.sbin/sysinstall/menus.c b/usr.sbin/sysinstall/menus.c index 91d8033629c4..8e265e9f532f 100644 --- a/usr.sbin/sysinstall/menus.c +++ b/usr.sbin/sysinstall/menus.c @@ -1448,8 +1448,10 @@ DMenu MenuStartup = { NULL, { { "X Exit", "Exit this menu (returning to previous)", checkTrue, dmenuExit, NULL, NULL, '<', '<', '<' }, +#ifdef __i386__ { " APM", "Auto-power management services (typically laptops)", dmenuVarCheck, dmenuToggleVariable, NULL, "apm_enable=YES" }, +#endif #ifdef PCCARD_ARCH { " pccard", "Enable PCCARD (AKA PCMCIA) services (also laptops)", dmenuVarCheck, dmenuToggleVariable, NULL, "pccard_enable=YES" },