diff options
author | Max Rees <maxcrees@me.com> | 2018-09-20 15:15:55 -0400 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-09-21 22:00:00 +0000 |
commit | 07766c024b48ca237919754cc57623c56c2e6344 (patch) | |
tree | 17b87846dd41dffc9e1714411a290e1807c5e498 /user/tlp/tlp.initd | |
parent | 5fbf18fb572eb4f65469b000f201d1ac2fd0552c (diff) | |
download | packages-07766c024b48ca237919754cc57623c56c2e6344.tar.gz packages-07766c024b48ca237919754cc57623c56c2e6344.tar.bz2 packages-07766c024b48ca237919754cc57623c56c2e6344.tar.xz packages-07766c024b48ca237919754cc57623c56c2e6344.zip |
user/tlp: new package
Diffstat (limited to 'user/tlp/tlp.initd')
-rwxr-xr-x | user/tlp/tlp.initd | 15 |
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; } |