summaryrefslogtreecommitdiff
path: root/sysutils/powerman/files/powerman.sh.in
blob: e20ebbc130d4a629a941902f2169e418ecd7245d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
# $FreeBSD$

# PROVIDE: powermand
# REQUIRE: NETWORKING
# BEFORE: LOGIN
# KEYWORD: shutdown

# Define these powermand_* variables in one of these files:
#	/etc/rc.conf
#	/etc/rc.conf.local
#	/etc/rc.conf.d/powermand
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
# powermand_enable="YES"
# powermand_flags="<set as needed>"

powermand_enable=${powermand_enable:-"NO"}

. %%RC_SUBR%%

name="powermand"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/powermand"
required_files="%%PREFIX%%/etc/powerman.conf"
 
load_rc_config $name
run_rc_command "$1"