blob: 58a98dbf79a7717f7c21bb09c9b9e68a2fdb18de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/usr/bin/openrc-run
# OpenRC phc-intel init script
_NAME=phc-intel
_DESCRIPTION='Intel CPU undervolting'
_SCRIPT=/usr/bin/phc-intel
extra_started_commands="status set"
depend() {
want modules
}
start() {
ebegin "${_NAME}: Setting ${_DESCRIPTION} parameters."
"${_SCRIPT}" start
eend "$?"
}
stop() {
ebegin "${_NAME}: Unsetting ${_DESCRIPTION} parameters."
"${_SCRIPT}" stop
eend "$?"
}
reload() {
"$0" stop
"$0" start
}
status() {
ebegin "${_NAME}: Querying status of ${_DESCRIPTION} parameters."
"${_SCRIPT}" status
eend "$?"
}
set() {
ebegin "${_NAME}: Setting ${_DESCRIPTION} parameters."
"${_SCRIPT}" set
eend "$?"
}
|