mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
31 lines
359 B
Bash
31 lines
359 B
Bash
#!/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"
|