diff options
Diffstat (limited to 'testing/tlp/tlp.initd')
-rwxr-xr-x | testing/tlp/tlp.initd | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/testing/tlp/tlp.initd b/testing/tlp/tlp.initd index 4f29bd3a62..05b4c3b975 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_started_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; } |