summaryrefslogtreecommitdiff
path: root/user/tlp/tlp.initd
diff options
context:
space:
mode:
Diffstat (limited to 'user/tlp/tlp.initd')
-rwxr-xr-xuser/tlp/tlp.initd15
1 files changed, 15 insertions, 0 deletions
diff --git a/user/tlp/tlp.initd b/user/tlp/tlp.initd
new file mode 100755
index 000000000..05b4c3b97
--- /dev/null
+++ b/user/tlp/tlp.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+
+description="Initialize tlp"
+extra_started_commands="force_reload"
+
+depend() {
+ need localmount
+}
+
+status() { tlp-stat -s; }
+# TODO: keep the following in one line
+start() { tlp init start; }
+stop() { tlp init stop; }
+restart() { tlp init restart; }
+force_reload() { tlp init force-reload; }