aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/powerd
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rc/rc.d/powerd')
-rwxr-xr-xlibexec/rc/rc.d/powerd22
1 files changed, 22 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/powerd b/libexec/rc/rc.d/powerd
new file mode 100755
index 000000000000..8ebc9cc2dc7f
--- /dev/null
+++ b/libexec/rc/rc.d/powerd
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+#
+
+# PROVIDE: powerd
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: nojail shutdown
+
+. /etc/rc.subr
+
+name="powerd"
+desc="Modify the power profile based on AC line state"
+rcvar="powerd_enable"
+command="/usr/sbin/${name}"
+
+load_rc_config $name
+
+# doesn't make sense to run in a svcj: privileged operations
+powerd_svcj="NO"
+
+run_rc_command "$1"