aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tlp/tlp.initd
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2017-03-16 19:22:56 +0800
committerNatanael Copa <ncopa@alpinelinux.org>2017-03-16 15:33:51 +0000
commitc860144b5b79ea667fbedcc34a800637b0339b88 (patch)
treeeab538a28476701a45f79fa4ae8568a936baa2ab /testing/tlp/tlp.initd
parent7da4e0efc8372ec248d94b64225da8b4ecbde7ae (diff)
downloadaports-c860144b5b79ea667fbedcc34a800637b0339b88.tar.bz2
aports-c860144b5b79ea667fbedcc34a800637b0339b88.tar.xz
testing/tlp: new aport
http://linrunner.de/en/tlp/tlp.html Linux Advanced Power Management
Diffstat (limited to 'testing/tlp/tlp.initd')
-rwxr-xr-xtesting/tlp/tlp.initd24
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/tlp/tlp.initd b/testing/tlp/tlp.initd
new file mode 100755
index 0000000000..4f29bd3a62
--- /dev/null
+++ b/testing/tlp/tlp.initd
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+
+description="Initialize tlp"
+command=/usr/sbin/tlp
+
+extra_commands="force-reload"
+
+depend() {
+ need localmount
+}
+
+status() {
+ tlp-stat -s
+}
+
+# TODO: I don't know how to write this initd
+case "$1" in
+ start|\
+ stop|\
+ restart|\
+ force-reload)
+ tlp init $1
+ ;;
+esac