1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00
freebsd/etc/rc.d/apm

31 lines
359 B
Plaintext
Raw Normal View History

#!/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)
return 0
;;
esac
return 1
}
load_rc_config $name
run_rc_command "$1"