summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-05-02 08:35:17 +0000
committermtm <mtm@FreeBSD.org>2003-05-02 08:35:17 +0000
commit97e0bf7aa2b551f34cd2c3d35114554c7c3f4455 (patch)
treebd81b3d88d1db7efc0fa3d741b0ce0d740c3e7a8 /etc
parent94c69d48c903c084c8506603e008e78094617fd0 (diff)
downloadFreeBSD-src-97e0bf7aa2b551f34cd2c3d35114554c7c3f4455.zip
FreeBSD-src-97e0bf7aa2b551f34cd2c3d35114554c7c3f4455.tar.gz
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)
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/apm2
-rwxr-xr-xetc/rc.d/apmd6
-rw-r--r--etc/rc.d/archdep2
3 files changed, 5 insertions, 5 deletions
diff --git a/etc/rc.d/apm b/etc/rc.d/apm
index d88f7c0..4040785 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 8cf548e..80c5a54 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 4d5db87..f4669f2 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)
OpenPOWER on IntegriCloud