mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
31 lines
359 B
Plaintext
31 lines
359 B
Plaintext
|
#!/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"
|