From 7b579aff4c2d1325a1f8bf5a3c68f8f3f129c23d Mon Sep 17 00:00:00 2001 From: Mike Makonnen Date: Fri, 2 May 2003 08:35:17 +0000 Subject: [PATCH] Huh? When did the etc bits for amd64 get added? Make sure they're ported over to rc.d. While I'm at it correct a logic mistake in rc.d/apmd. Approved by: markm (mentor)(implicit) --- etc/rc.d/apm | 2 +- etc/rc.d/apmd | 6 +++--- etc/rc.d/archdep | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/etc/rc.d/apm b/etc/rc.d/apm index d88f7c06747..4040785b1fa 100644 --- a/etc/rc.d/apm +++ b/etc/rc.d/apm @@ -19,7 +19,7 @@ command_args="-e enable" apm_precmd() { case `${SYSCTL_N} hw.machine_arch` in - i386) + i386|amd64) return 0 ;; esac diff --git a/etc/rc.d/apmd b/etc/rc.d/apmd index 8cf548ea215..80c5a54cd3a 100755 --- a/etc/rc.d/apmd +++ b/etc/rc.d/apmd @@ -24,9 +24,9 @@ esac apmd_prestart() { case `${SYSCTL_N} hw.machine_arch` in - i386) - # Don't start if apm is already running - /etc/rc.d/apm forcestatus > /dev/null && return 1 + i386|amd64) + # Start apm if it is not already running + /etc/rc.d/apm forcestatus > /dev/null || /etc/rc.d/apm forcestart ;; *) return 1 diff --git a/etc/rc.d/archdep b/etc/rc.d/archdep index 4d5db87276d..f4669f2428c 100644 --- a/etc/rc.d/archdep +++ b/etc/rc.d/archdep @@ -56,7 +56,7 @@ ibcs2_compat() _arch=`${SYSCTL_N} hw.machine` echo -n "Initial $_arch initialization:" case $_arch in -i386) +i386|amd64) ibcs2_compat ;; alpha)