[alpine-aports] [PATCH] testing/tlp: fix tlp.initd

Ivan Tham
Details
Message ID
<20170402144321.20934-1-pickfire@riseup.net>
Sender timestamp
1491144201
DKIM signature
missing
Download raw message
Patch: +9 -18
---
 testing/tlp/APKBUILD  |  4 ++--
 testing/tlp/tlp.initd | 23 +++++++----------------
 2 files changed, 9 insertions(+), 18 deletions(-)

diff --git a/testing/tlp/APKBUILD b/testing/tlp/APKBUILD
index 1202fc63e1..1e92ec60e1 100644
--- a/testing/tlp/APKBUILD
+++ b/testing/tlp/APKBUILD
@@ -3,7 +3,7 @@
 pkgname=tlp
 _pkgname=TLP
 pkgver=0.9
-pkgrel=0
+pkgrel=1
 pkgdesc="Linux Advanced Power Management"
 url="http://linrunner.de/en/tlp/tlp.html"
 arch="noarch"
@@ -46,4 +46,4 @@ bashcomp() {
 }
 
 sha512sums="126d11739f2438eb9cf8c496fc7d8cecfb05b578c2ae99264ee53d9fb85dfeab59456483867f21c621d0db6793468f7b0bd77868e999801115e157e1ba383610  TLP-0.9.tar.gz
-26b910acf3987c76fbf9fd24a3fbc95e8cd4b06fedf5b53c17147c9b371a99e1250c30f55bedcc817072f72145dc3d3f059dc9306af984c8d855fa22f2b22837  tlp.initd"
+eea97461f853d58a91fcb1d43bf1605a04a89b5847a6e2c0dc692d121631164216cb67240d2b825dda70b67bbbd9b8abae661e94fa91bd41fc09ae16fc5f6ec3  tlp.initd"
diff --git a/testing/tlp/tlp.initd b/testing/tlp/tlp.initd
index 4f29bd3a62..a2d9d57ca1 100755
--- a/testing/tlp/tlp.initd
+++ b/testing/tlp/tlp.initd
@@ -1,24 +1,15 @@
 #!/sbin/openrc-run
 
 description="Initialize tlp"
-command=/usr/sbin/tlp
-
-extra_commands="force-reload"
+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
+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
-- 
2.12.2



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---