diff options
Diffstat (limited to 'sysutils/powerman/files/powerman.sh.in')
-rw-r--r-- | sysutils/powerman/files/powerman.sh.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sysutils/powerman/files/powerman.sh.in b/sysutils/powerman/files/powerman.sh.in new file mode 100644 index 000000000000..0cfb27c7b7d3 --- /dev/null +++ b/sysutils/powerman/files/powerman.sh.in @@ -0,0 +1,27 @@ +#!/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=${powermand_enable:-"NO"} +powermand_flags=${powermand_flags:-""} + +. %%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" |