summaryrefslogtreecommitdiff
path: root/nonsystemd/tlp-openrc/tlp.initd
diff options
context:
space:
mode:
Diffstat (limited to 'nonsystemd/tlp-openrc/tlp.initd')
-rw-r--r--nonsystemd/tlp-openrc/tlp.initd25
1 files changed, 25 insertions, 0 deletions
diff --git a/nonsystemd/tlp-openrc/tlp.initd b/nonsystemd/tlp-openrc/tlp.initd
new file mode 100644
index 000000000..827cafdb6
--- /dev/null
+++ b/nonsystemd/tlp-openrc/tlp.initd
@@ -0,0 +1,25 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+description="TLP start/stop actions"
+
+depend() {
+ after modules
+
+ # sysfs is required (bat thresholds); localmount:/usr
+ need sysfs localmount
+
+ # thinkpad-radiosw (USE=deprecated)
+ use acpid
+
+ after NetworkManager dbus bluetooth
+
+ # run after xdm to avoid bluetooth/wwan/... race-condition with gdm
+ after xdm
+}
+
+start() { /usr/bin/tlp init start; }
+stop() { /usr/bin/tlp init stop; }
+restart() { /usr/bin/tlp init restart; }