summaryrefslogtreecommitdiff
path: root/user/tlp/tlp.initd
blob: 05b4c3b97585738c4fe51b01af98d00cd3e26fd0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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; }