From 07766c024b48ca237919754cc57623c56c2e6344 Mon Sep 17 00:00:00 2001 From: Max Rees Date: Thu, 20 Sep 2018 15:15:55 -0400 Subject: user/tlp: new package --- user/tlp/tlp.initd | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 user/tlp/tlp.initd (limited to 'user/tlp/tlp.initd') 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; } -- cgit v1.2.3-60-g2f50