Deleted Added
full compact
apmd (124616) apmd (124627)
1#!/bin/sh
2#
3# $NetBSD: apmd,v 1.5 2002/03/22 04:33:58 thorpej Exp $
1#!/bin/sh
2#
3# $NetBSD: apmd,v 1.5 2002/03/22 04:33:58 thorpej Exp $
4# $FreeBSD: head/etc/rc.d/apmd 124616 2004-01-17 10:16:38Z mtm $
4# $FreeBSD: head/etc/rc.d/apmd 124627 2004-01-17 11:25:16Z mtm $
5#
6
7# PROVIDE: apmd
8# REQUIRE: DAEMON apm
9# BEFORE: LOGIN
10# KEYWORD: FreeBSD
11
12. /etc/rc.subr
13
14name="apmd"
15rcvar=`set_rcvar`
16command="/usr/sbin/${name}"
5#
6
7# PROVIDE: apmd
8# REQUIRE: DAEMON apm
9# BEFORE: LOGIN
10# KEYWORD: FreeBSD
11
12. /etc/rc.subr
13
14name="apmd"
15rcvar=`set_rcvar`
16command="/usr/sbin/${name}"
17start_precmd="apmd_prestart"
17
18
18case ${OSTYPE} in
19FreeBSD)
20 start_precmd="apmd_prestart"
21 ;;
22esac
23
24apmd_prestart()
25{
26 case `${SYSCTL_N} hw.machine_arch` in
27 i386)
28 # Enable apm if it is not already enabled
29 if ! checkyesno apm_enable && \
30 ! /etc/rc.d/apm forcestatus 1>/dev/null 2>&1
31 then

--- 18 unchanged lines hidden ---
19apmd_prestart()
20{
21 case `${SYSCTL_N} hw.machine_arch` in
22 i386)
23 # Enable apm if it is not already enabled
24 if ! checkyesno apm_enable && \
25 ! /etc/rc.d/apm forcestatus 1>/dev/null 2>&1
26 then

--- 18 unchanged lines hidden ---