mtm 97e0bf7aa2 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)
2003-05-02 08:35:17 +00:00

31 lines
365 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: apm
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: FreeBSD
. /etc/rc.subr
name="apm"
rcvar=`set_rcvar`
start_precmd="apm_precmd"
command="/usr/sbin/${name}"
command_args="-e enable"
apm_precmd()
{
case `${SYSCTL_N} hw.machine_arch` in
i386|amd64)
return 0
;;
esac
return 1
}
load_rc_config $name
run_rc_command "$1"