2002-07-07 04:16:53 +00:00
|
|
|
#!/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
|
2003-05-05 23:55:43 +00:00
|
|
|
i386)
|
2002-07-07 04:16:53 +00:00
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
return 1
|
|
|
|
}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|