3 # $NetBSD: apmd,v 1.5 2002/03/22 04:33:58 thorpej Exp $
4 # $FreeBSD: src/etc/rc.d/apmd,v 1.8 2003/06/09 17:44:30 mtm Exp $
5 # $DragonFly: src/etc/rc.d/apmd,v 1.1 2003/07/24 06:35:37 dillon Exp $
11 # KEYWORD: DragonFly FreeBSD NetBSD
17 command="/usr/sbin/${name}"
21 start_precmd="apmd_prestart"
24 start_precmd="apmd_prestart"
30 case `${SYSCTL_N} hw.machine_arch` in
32 # Enable apm if it is not already enabled
33 if ! checkyesno apm_enable && \
34 ! /etc/rc.d/apm forcestatus 1>/dev/null 2>&1
36 force_depend apm || return 1
39 # Warn user about acpi apm compatibility support which
40 # does not work with apmd.
41 if [ ! -e /dev/apmctl ]; then
42 warn "/dev/apmctl not found; kernel is missing apm(4)"