repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git]
/
k10ctl
/
k10ctl.rc
blob
a6e27bcc185d3eb88b4c7abfc9b9326d8266bd64
1
#!/bin/bash
2
3
daemon_name
=
k10ctl
4
.
/
etc
/
rc.conf
5
.
/
etc
/
rc.d
/
functions
6
.
/
etc
/
conf.d
/
$daemon_name
7
8
let
CORES
=
CORES-1
9
10
case
"
$1
"
in
11
start
)
12
stat_busy
"Setting CPU Voltages"
13
14
if
${CONFIGURATED}
;
then
15
# RUN
16
for
i
in
${PSTATES[@]}
;
do
17
$daemon_name
0
-
${CORES} $i -nv ${NBVID[$i]} -cv ${CPUVID[$i]} -cd ${DID[$i]} -cf ${FID[$i]}
18
done
19
#
20
if
[
$?
-gt
0
];
then
21
stat_fail
22
exit
1
23
else
24
stat_done
25
fi
26
else
27
stat_fail
28
exit
1
29
fi
30
;;
31
32
*)
33
echo
"usage:
$0
{start}"
34
esac
35
36
exit
0